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 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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
ValueDecoderFactory
public ValueDecoderFactory()
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()