Package org.codehaus.stax2.ri.typed
Class ValueDecoderFactory
- java.lang.Object
-
- org.codehaus.stax2.ri.typed.ValueDecoderFactory
-
public final class ValueDecoderFactory extends Object
Factory class used to construct allTypedValueDecoder(andTypedArrayDecoder) 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 Class Summary
Nested Classes Modifier and Type Class Description static classValueDecoderFactory.BaseArrayDecoderIntermediate shared base class for token array decoders.static classValueDecoderFactory.BooleanDecoderstatic classValueDecoderFactory.DecimalDecoderstatic classValueDecoderFactory.DecoderBaseThere are some things common to all textual decoders (like white space trimming).static classValueDecoderFactory.DoubleArrayDecoderstatic classValueDecoderFactory.DoubleDecoderstatic classValueDecoderFactory.FloatArrayDecoderstatic classValueDecoderFactory.FloatDecoderstatic classValueDecoderFactory.IntArrayDecoderstatic classValueDecoderFactory.IntDecoderstatic classValueDecoderFactory.IntegerDecoderstatic classValueDecoderFactory.LongArrayDecoderstatic classValueDecoderFactory.LongDecoderstatic classValueDecoderFactory.QNameDecoder
-
Field Summary
Fields Modifier and Type Field Description protected ValueDecoderFactory.BooleanDecodermBooleanDecoderprotected ValueDecoderFactory.DoubleDecodermDoubleDecoderprotected ValueDecoderFactory.FloatDecodermFloatDecoderprotected ValueDecoderFactory.IntDecodermIntDecoderprotected ValueDecoderFactory.LongDecodermLongDecoder
-
Constructor Summary
Constructors Constructor Description ValueDecoderFactory()
-
Method Summary
-
-
-
Field Detail
-
mBooleanDecoder
protected ValueDecoderFactory.BooleanDecoder mBooleanDecoder
-
mIntDecoder
protected ValueDecoderFactory.IntDecoder mIntDecoder
-
mLongDecoder
protected ValueDecoderFactory.LongDecoder mLongDecoder
-
mFloatDecoder
protected ValueDecoderFactory.FloatDecoder mFloatDecoder
-
mDoubleDecoder
protected ValueDecoderFactory.DoubleDecoder mDoubleDecoder
-
-
Method Detail
-
getBooleanDecoder
public ValueDecoderFactory.BooleanDecoder getBooleanDecoder()
-
getIntDecoder
public ValueDecoderFactory.IntDecoder getIntDecoder()
-
getLongDecoder
public ValueDecoderFactory.LongDecoder getLongDecoder()
-
getFloatDecoder
public ValueDecoderFactory.FloatDecoder getFloatDecoder()
-
getDoubleDecoder
public ValueDecoderFactory.DoubleDecoder getDoubleDecoder()
-
getIntegerDecoder
public ValueDecoderFactory.IntegerDecoder getIntegerDecoder()
-
getDecimalDecoder
public ValueDecoderFactory.DecimalDecoder getDecimalDecoder()
-
getQNameDecoder
public ValueDecoderFactory.QNameDecoder getQNameDecoder(NamespaceContext nsc)
-
getIntArrayDecoder
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.
-
getIntArrayDecoder
public ValueDecoderFactory.IntArrayDecoder getIntArrayDecoder()
Method for constructing integer array value decoder that automatically allocates and resizes result array as necessary.
-
getLongArrayDecoder
public ValueDecoderFactory.LongArrayDecoder getLongArrayDecoder(long[] result, int offset, int len)
-
getLongArrayDecoder
public ValueDecoderFactory.LongArrayDecoder getLongArrayDecoder()
-
getFloatArrayDecoder
public ValueDecoderFactory.FloatArrayDecoder getFloatArrayDecoder(float[] result, int offset, int len)
-
getFloatArrayDecoder
public ValueDecoderFactory.FloatArrayDecoder getFloatArrayDecoder()
-
getDoubleArrayDecoder
public ValueDecoderFactory.DoubleArrayDecoder getDoubleArrayDecoder(double[] result, int offset, int len)
-
getDoubleArrayDecoder
public ValueDecoderFactory.DoubleArrayDecoder getDoubleArrayDecoder()
-
-