Package com.ctc.wstx.util
Contains utility classes that are not directly Woodstox specific, but are
for now only used by Woodstox.
Note that some of more generic classes may eventually be moved to more
generic packages under com.ctc
package.
-
Class Summary Class Description ArgUtil Simple static utility class that contains (static) utility methods useful when parsing non-typesafe arguments (String-only configuration, command line args).BaseNsContext Abstract base class that defines extra features defined by most NamespaceContext implementations Wodstox uses.BijectiveNsMap Helper class that implements "bijective map" (Map that allows use of values as keys and vice versa, bidirectional access), and is specifically used for storing namespace binding information.DataUtil DefaultXmlSymbolTable Factory class used for instantiating pre-populated XML symbol tables.ElementId Simple container Object used to store information about id attribute values, and references to such (as of yet undefined) values.ElementIdMap This class is a specialized type-safe linked hash map used for storingElementId
instances.EmptyNamespaceContext DummyNamespaceContext
(andBaseNsContext
) implementation that is usually used in non-namespace-aware mode.ExceptionUtil InternCache Singleton class that implements "fast intern" functionality, essentially adding a layer that caches Strings that have been previously intern()ed, but that probably shouldn't be added to symbol tables.PrefixedName Simple key Object to be used for storing/accessing of potentially namespace scoped element and attribute names.SimpleCache<K,V> Simple Map implementation usable for caches where contents do not expire, but where size needs to remain bounded.StringUtil StringVector Data container similarList
(from storage perspective), but that can be used in multiple ways.SymbolTable This class is a kind of specialized type-safe Map, from char array to String value.TextAccumulator Simple utility class used to efficiently accumulate and concatenate text passed in various formsTextBuffer TextBuffer is a class similar toStringBuilder
, with following differences: TextBuffer uses segments character arrays, to avoid having to do additional array copies when array is not big enough.TextBuilder Class similar toStringBuilder
, except that it can be used to construct multiple Strings, that will share same underlying character buffer.URLUtil WordResolver A specialized Map/Symbol table - like data structure that can be used for both checking whether a word (passed in as a char array) exists in certain set of words AND getting that word as a String.WordSet An efficient (both memory and time) implementation of a Set used to verify that a given word is contained within the set.XmlChars Simple utility class that encapsulates logic of determining validity of characters outside basic 7-bit range of Unicode, for XML 1.0