Package org.springframework.util
Miscellaneous utility classes, such as String manipulation utilities, a Log4J configurer, and a state holder for paged lists of objects.
Interface Summary Interface Description AutoPopulatingList.ElementFactory<E> Factory interface for creating elements for an index-based access data structure such as aList
.ConcurrentReferenceHashMap.Reference<K,V> A reference to anConcurrentReferenceHashMap.Entry
contained in the map.ErrorHandler A strategy for handling errors.IdGenerator Contract for generating universally unique identifiers(UUIDs)
.MultiValueMap<K,V> Extension of theMap
interface that stores multiple values.PathMatcher Strategy interface forString
-based path matching.PropertiesPersister Strategy interface for persistingjava.util.Properties
, allowing for pluggable parsing strategies.PropertyPlaceholderHelper.PlaceholderResolver Strategy interface used to resolve replacement values for placeholders contained in Strings.ReflectionUtils.FieldCallback Callback interface invoked on each field in the hierarchy.ReflectionUtils.FieldFilter Callback optionally used to filter fields to be operated on by a field callback.ReflectionUtils.MethodCallback Action to take on each method.ReflectionUtils.MethodFilter Callback optionally used to filter methods to be operated on by a method callback.RouteMatcher Contract for matching routes to patterns.RouteMatcher.Route A parsed representation of a route.StringValueResolver Simple strategy interface for resolving a String value.Class Summary Class Description AlternativeJdkIdGenerator AnIdGenerator
that usesSecureRandom
for the initial seed andRandom
thereafter, instead of callingUUID.randomUUID()
every time asJdkIdGenerator
does.AntPathMatcher PathMatcher
implementation for Ant-style path patterns.AntPathMatcher.AntPathStringMatcher Tests whether or not a string matches against a pattern via aPattern
.AntPathMatcher.AntPatternComparator The defaultComparator
implementation returned byAntPathMatcher.getPatternComparator(String)
.Assert Assertion utility class that assists in validating arguments.AutoPopulatingList<E> SimpleList
wrapper class that allows for elements to be automatically populated as they are requested.Base64Utils A simple utility class for Base64 encoding and decoding.ClassUtils Miscellaneousjava.lang.Class
utility methods.CollectionUtils Miscellaneous collection utility methods.CommonsLogWriter java.io.Writer
adapter for a Commons LoggingLog
.CompositeIterator<E> Composite iterator that combines multiple other iterators, as registered viaCompositeIterator.add(Iterator)
.ConcurrencyThrottleSupport Support class for throttling concurrent access to a specific resource.ConcurrentReferenceHashMap<K,V> ConcurrentReferenceHashMap.Entry<K,V> A single map entry.CustomizableThreadCreator Simple customizable helper class for creating newThread
instances.DefaultPropertiesPersister Default implementation of thePropertiesPersister
interface.DigestUtils Miscellaneous methods for calculating digests.ExceptionTypeFilter AnInstanceFilter
implementation that handles exception types.FastByteArrayOutputStream A speedy alternative toByteArrayOutputStream
.FileCopyUtils Simple utility methods for file and stream copying.FileSystemUtils Utility methods for working with the file system.InstanceFilter<T> A simple instance filter that checks if a given instance match based on a collection of includes and excludes element.JdkIdGenerator AnIdGenerator
that callsUUID.randomUUID()
.LinkedCaseInsensitiveMap<V> LinkedHashMap
variant that stores String keys in a case-insensitive manner, for example for key-based access in a results table.LinkedMultiValueMap<K,V> Simple implementation ofMultiValueMap
that wraps aLinkedHashMap
, storing multiple values in aLinkedList
.MethodInvoker Helper class that allows for specifying a method to invoke in a declarative fashion, be it static or non-static.MimeType Represents a MIME Type, as originally defined in RFC 2046 and subsequently used in other Internet protocols including HTTP.MimeType.SpecificityComparator<T extends MimeType> Comparator to sortMimeTypes
in order of specificity.MimeTypeUtils MiscellaneousMimeType
utility methods.NumberUtils Miscellaneous utility methods for number conversion and parsing.ObjectUtils Miscellaneous object utility methods.PatternMatchUtils Utility methods for simple pattern matching, in particular for Spring's typical "xxx*", "*xxx" and "*xxx*" pattern styles.PropertyPlaceholderHelper Utility class for working with Strings that have placeholder values in them.ReflectionUtils Simple utility class for working with the reflection API and handling reflection exceptions.ResizableByteArrayOutputStream An extension ofByteArrayOutputStream
that: has publicResizableByteArrayOutputStream.grow(int)
andResizableByteArrayOutputStream.resize(int)
methods to get more control over the size of the internal buffer has a higher initial capacity (256) by defaultResourceUtils Utility methods for resolving resource locations to files in the file system.SerializationUtils Static utilities for serialization and deserialization.SimpleIdGenerator A simpleIdGenerator
that starts at 1, increments up toLong.MAX_VALUE
, and then rolls over.SimpleRouteMatcher RouteMatcher
that delegates to aPathMatcher
.SocketUtils Simple utility methods for working with network sockets — for example, for finding available ports onlocalhost
.StopWatch Simple stop watch, allowing for timing of a number of tasks, exposing total running time and running time for each named task.StopWatch.TaskInfo Nested class to hold data about one task executed within theStopWatch
.StreamUtils Simple utility methods for dealing with streams.StringUtils MiscellaneousString
utility methods.SystemPropertyUtils Helper class for resolving placeholders in texts.TypeUtils Utility to work with Java 5 generic type parameters.Enum Summary Enum Description ConcurrentReferenceHashMap.ReferenceType Various reference types supported by this map.ConcurrentReferenceHashMap.Restructure The types of restructuring that can be performed.Exception Summary Exception Description AutoPopulatingList.ElementInstantiationException Exception to be thrown from ElementFactory.InvalidMimeTypeException Exception thrown fromMimeTypeUtils.parseMimeType(String)
in case of encountering an invalid content type specification String.