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 class
ValueDecoderFactory.BaseArrayDecoder
Intermediate shared base class for token array decoders.static class
ValueDecoderFactory.BooleanDecoder
static class
ValueDecoderFactory.DecimalDecoder
static class
ValueDecoderFactory.DecoderBase
There are some things common to all textual decoders (like white space trimming).static class
ValueDecoderFactory.DoubleArrayDecoder
static class
ValueDecoderFactory.DoubleDecoder
static class
ValueDecoderFactory.FloatArrayDecoder
static class
ValueDecoderFactory.FloatDecoder
static class
ValueDecoderFactory.IntArrayDecoder
static class
ValueDecoderFactory.IntDecoder
static class
ValueDecoderFactory.IntegerDecoder
static class
ValueDecoderFactory.LongArrayDecoder
static class
ValueDecoderFactory.LongDecoder
static class
ValueDecoderFactory.QNameDecoder
-
Field Summary
Fields Modifier and Type Field Description protected ValueDecoderFactory.BooleanDecoder
mBooleanDecoder
protected ValueDecoderFactory.DoubleDecoder
mDoubleDecoder
protected ValueDecoderFactory.FloatDecoder
mFloatDecoder
protected ValueDecoderFactory.IntDecoder
mIntDecoder
protected ValueDecoderFactory.LongDecoder
mLongDecoder
-
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()
-
-