open class AlternativeJdkIdGenerator : IdGenerator
An IdGenerator that uses SecureRandom for the initial seed and Random thereafter, instead of calling |
|
abstract class Assert
Assertion utility class that assists in validating arguments. Useful for identifying programmer errors early and clearly at runtime. For example, if the contract of a public method states it does not allow Typically used to validate method arguments rather than configuration properties, to check for cases that are usually programmer errors rather than configuration errors. In contrast to configuration initialization code, there is usually no point in falling back to defaults in such methods. This class is similar to JUnit's assertion library. If an argument value is deemed invalid, an IllegalArgumentException is thrown (typically). For example:
Mainly for internal use within the framework; consider Apache's Commons Lang for a more comprehensive suite of |
|
open class AutoPopulatingList<E : Any> : MutableList<E>, Serializable
Simple List wrapper class that allows for elements to be automatically populated as they are requested. This is particularly useful for data binding to List, allowing for elements to be created and added to the List in a "just in time" fashion. Note: This class is not thread-safe. To create a thread-safe version, use the Inspired by |
|
abstract class Base64Utils
A simple utility class for Base64 encoding and decoding. Adapts to Java 8's java.util.Base64 in a convenience fashion. |
|
abstract class CollectionUtils
Miscellaneous collection utility methods. Mainly for internal use within the framework. |
|
open class CommonsLogWriter : Writer
|
|
open class CompositeIterator<E : Any> : MutableIterator<E>
Composite iterator that combines multiple other iterators, as registered via This implementation maintains a linked set of iterators which are invoked in sequence until all iterators are exhausted. |
|
abstract class DigestUtils
Miscellaneous methods for calculating digests. Mainly for internal use within the framework; consider Apache Commons Codec for a more comprehensive suite of digest utilities. |
|
open class ExceptionTypeFilter : InstanceFilter<Class<out Throwable>>
An InstanceFilter implementation that handles exception types. A type will match against a given candidate if it is assignable to that candidate. |
|
open class FastByteArrayOutputStream : OutputStream
A speedy alternative to java.io.ByteArrayOutputStream. Note that this variant does not extend Unlike java.io.ByteArrayOutputStream, this implementation is backed by a java.util.LinkedList of The initial buffer is only created when the stream is first written. There is also no copying of the internal buffer if its contents is extracted with the |
|
abstract class FileCopyUtils
Simple utility methods for file and stream copying. All copy methods use a block size of 4096 bytes, and close all affected streams when done. A variation of the copy methods from this class that leave streams open can be found in StreamUtils. Mainly for use within the framework, but also useful for application code. |
|
abstract class FileSystemUtils
Utility methods for working with the file system. |
|
open class JdkIdGenerator : IdGenerator
An IdGenerator that calls |
|
open class LinkedCaseInsensitiveMap<V : Any> : MutableMap<String, V>, Serializable, Cloneable
LinkedHashMap variant that stores String keys in a case-insensitive manner, for example for key-based access in a results table. Preserves the original order as well as the original casing of keys, while allowing for contains, get and remove calls with any case of key. Does not support |
|
abstract class PatternMatchUtils
Utility methods for simple pattern matching, in particular for Spring's typical "xxx*", "*xxx" and "*xxx*" pattern styles. |
|
abstract class ReflectionUtils
Simple utility class for working with the reflection API and handling reflection exceptions. Only intended for internal use. |
|
open class ResizableByteArrayOutputStream : ByteArrayOutputStream
An extension of java.io.ByteArrayOutputStream that:
As of 4.2, this class has been superseded by FastByteArrayOutputStream for Spring's internal use where no assignability to ByteArrayOutputStream is needed (since FastByteArrayOutputStream is more efficient with buffer resize management but doesn't extend the standard ByteArrayOutputStream). |
|
abstract class SerializationUtils
Static utilities for serialization and deserialization. |
|
open class SimpleIdGenerator : IdGenerator
A simple IdGenerator that starts at 1 and increments by 1 with each call. |
|
open class SocketUtils
Simple utility methods for working with network sockets — for example, for finding available ports on Within this class, a TCP port refers to a port for a ServerSocket; whereas, a UDP port refers to a port for a DatagramSocket. |
|
open class StopWatch
Simple stop watch, allowing for timing of a number of tasks, exposing total running time and running time for each named task. Conceals use of Note that this object is not designed to be thread-safe and does not use synchronization. This class is normally used to verify performance during proof-of-concepts and in development, rather than as part of production applications. |
|
abstract class SystemPropertyUtils
Helper class for resolving placeholders in texts. Usually applied to file paths. A text may contain |
|
abstract class TypeUtils
Utility to work with Java 5 generic type parameters. Mainly for internal use within the framework. |
open class InvalidMimeTypeException : IllegalArgumentException
Exception thrown from |