Top Description Inners Fields Constructors Methods
org.codehaus.stax2.ri.typed

public final Class ValueDecoderFactory

extends Object
Class Inheritance
Imports
java.math.BigDecimal, .BigInteger, javax.xml.namespace.NamespaceContext, .QName, org.codehaus.stax2.typed.TypedArrayDecoder, .TypedValueDecoder

Factory class used to construct all org.codehaus.stax2.typed.TypedValueDecoder (and org.codehaus.stax2.typed.TypedArrayDecoder) instances needed by a single stream reader instance. Some decoders are also recycled (for the lifetime of an encoder, which is same as its owners, i.e. stream reader or writer's) to minimize overhead.

Since encoders may be recycled, instances are not thread-safe.

Since
3.0

Nested and Inner Type Summary

Modifier and TypeClass and Description
public abstract static class
ValueDecoderFactory.BaseArrayDecoder

Intermediate shared base class for token array decoders.

public static class
public static class
public abstract static class
ValueDecoderFactory.DecoderBase

There are some things common to all textual decoders (like white space trimming).

public static class
public static class
public static class
public static class
public static class
public static class
public static class
public static class
public static class
public static class

Field Summary

Modifier and TypeField and Description
protected ValueDecoderFactory.BooleanDecoder
protected ValueDecoderFactory.DoubleDecoder
protected ValueDecoderFactory.FloatDecoder
protected ValueDecoderFactory.IntDecoder
protected ValueDecoderFactory.LongDecoder

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public ValueDecoderFactory.BooleanDecoder
public ValueDecoderFactory.DecimalDecoder
public ValueDecoderFactory.DoubleArrayDecoder
getDoubleArrayDecoder(double[] result, int offset, int len)

public ValueDecoderFactory.DoubleArrayDecoder
public ValueDecoderFactory.DoubleDecoder
public ValueDecoderFactory.FloatArrayDecoder
getFloatArrayDecoder(float[] result, int offset, int len)

public ValueDecoderFactory.FloatArrayDecoder
public ValueDecoderFactory.FloatDecoder
public ValueDecoderFactory.IntArrayDecoder
getIntArrayDecoder(int[] result, int offset, int len)

Method for constructing integer array value decoder that uses provided fixed array for storing results.

public ValueDecoderFactory.IntArrayDecoder
getIntArrayDecoder()

Method for constructing integer array value decoder that automatically allocates and resizes result array as necessary.

public ValueDecoderFactory.IntDecoder
public ValueDecoderFactory.IntegerDecoder
public ValueDecoderFactory.LongArrayDecoder
getLongArrayDecoder(long[] result, int offset, int len)

public ValueDecoderFactory.LongArrayDecoder
public ValueDecoderFactory.LongDecoder
public ValueDecoderFactory.QNameDecoder
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait