Package org.codehaus.stax2.ri.typed
Class ValueDecoderFactory
java.lang.Object
org.codehaus.stax2.ri.typed.ValueDecoderFactory
Factory class used to construct all
TypedValueDecoder
(and 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 Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Intermediate shared base class for token array decoders.static final class
static final class
static class
There are some things common to all textual decoders (like white space trimming).static final class
static final class
static final class
static final class
static final class
static final class
static final class
static final class
static final class
static final class
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ValueDecoderFactory.BooleanDecoder
protected ValueDecoderFactory.DoubleDecoder
protected ValueDecoderFactory.FloatDecoder
protected ValueDecoderFactory.IntDecoder
protected ValueDecoderFactory.LongDecoder
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetDoubleArrayDecoder
(double[] result, int offset, int len) getFloatArrayDecoder
(float[] result, int offset, int len) Method for constructing integer array value decoder that automatically allocates and resizes result array as necessary.getIntArrayDecoder
(int[] result, int offset, int len) Method for constructing integer array value decoder that uses provided fixed array for storing results.getLongArrayDecoder
(long[] result, int offset, int len)
-
Field Details
-
mBooleanDecoder
-
mIntDecoder
-
mLongDecoder
-
mFloatDecoder
-
mDoubleDecoder
-
-
Constructor Details
-
ValueDecoderFactory
public ValueDecoderFactory()
-
-
Method Details
-
getBooleanDecoder
-
getIntDecoder
-
getLongDecoder
-
getFloatDecoder
-
getDoubleDecoder
-
getIntegerDecoder
-
getDecimalDecoder
-
getQNameDecoder
-
getIntArrayDecoder
Method for constructing integer array value decoder that uses provided fixed array for storing results. -
getIntArrayDecoder
Method for constructing integer array value decoder that automatically allocates and resizes result array as necessary. -
getLongArrayDecoder
-
getLongArrayDecoder
-
getFloatArrayDecoder
public ValueDecoderFactory.FloatArrayDecoder getFloatArrayDecoder(float[] result, int offset, int len) -
getFloatArrayDecoder
-
getDoubleArrayDecoder
public ValueDecoderFactory.DoubleArrayDecoder getDoubleArrayDecoder(double[] result, int offset, int len) -
getDoubleArrayDecoder
-