Top Description Classes
[default module]

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

Modifier and TypeClass and Description
public class
ArgUtil

Simple static utility class that contains (static) utility methods useful when parsing non-typesafe arguments (String-only configuration, command line args).

public abstract class
BaseNsContext

Abstract base class that defines extra features defined by most NamespaceContext implementations Wodstox uses.

public class
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.

public class
public class
DefaultXmlSymbolTable

Factory class used for instantiating pre-populated XML symbol tables.

public class
ElementId

Simple container Object used to store information about id attribute values, and references to such (as of yet undefined) values.

public class
ElementIdMap

This class is a specialized type-safe linked hash map used for storing ElementId instances.

public class
EmptyNamespaceContext

Dummy NamespaceContext (and BaseNsContext) implementation that is usually used in non-namespace-aware mode.

public class
public class
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.

public class
PrefixedName

Simple key Object to be used for storing/accessing of potentially namespace scoped element and attribute names.

public class
SimpleCache<K, V>

Simple Map implementation usable for caches where contents do not expire, but where size needs to remain bounded.

public class
public class
StringVector

Data container similar java.util.List (from storage perspective), but that can be used in multiple ways.

public class
SymbolTable

This class is a kind of specialized type-safe Map, from char array to String value.

public class
TextAccumulator

Simple utility class used to efficiently accumulate and concatenate text passed in various forms

public class
TextBuffer

TextBuffer is a class similar to StringBuilder, with following differences:

  • TextBuffer uses segments character arrays, to avoid having to do additional array copies when array is not big enough. This means that only reallocating that is necessary is done only once -- if and when caller wants to access contents in a linear array (char[], String).
  • TextBuffer is not synchronized.
public class
TextBuilder

Class similar to StringBuilder, except that it can be used to construct multiple Strings, that will share same underlying character buffer.

public class
public class
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.

public class
WordSet

An efficient (both memory and time) implementation of a Set used to verify that a given word is contained within the set.

public class
XmlChars

Simple utility class that encapsulates logic of determining validity of characters outside basic 7-bit range of Unicode, for XML 1.0