org.codehaus.stax2.ri.typed
Class ValueDecoderFactory

java.lang.Object
  extended by 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

Nested Class Summary
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
protected  ValueDecoderFactory.BooleanDecoder mBooleanDecoder
           
protected  ValueDecoderFactory.DoubleDecoder mDoubleDecoder
           
protected  ValueDecoderFactory.FloatDecoder mFloatDecoder
           
protected  ValueDecoderFactory.IntDecoder mIntDecoder
           
protected  ValueDecoderFactory.LongDecoder mLongDecoder
           
 
Constructor Summary
ValueDecoderFactory()
           
 
Method Summary
 ValueDecoderFactory.BooleanDecoder getBooleanDecoder()
           
 ValueDecoderFactory.DecimalDecoder getDecimalDecoder()
           
 ValueDecoderFactory.DoubleArrayDecoder getDoubleArrayDecoder()
           
 ValueDecoderFactory.DoubleArrayDecoder getDoubleArrayDecoder(double[] result, int offset, int len)
           
 ValueDecoderFactory.DoubleDecoder getDoubleDecoder()
           
 ValueDecoderFactory.FloatArrayDecoder getFloatArrayDecoder()
           
 ValueDecoderFactory.FloatArrayDecoder getFloatArrayDecoder(float[] result, int offset, int len)
           
 ValueDecoderFactory.FloatDecoder getFloatDecoder()
           
 ValueDecoderFactory.IntArrayDecoder getIntArrayDecoder()
          Method for constructing integer array value decoder that automatically allocates and resizes result array as necessary.
 ValueDecoderFactory.IntArrayDecoder getIntArrayDecoder(int[] result, int offset, int len)
          Method for constructing integer array value decoder that uses provided fixed array for storing results.
 ValueDecoderFactory.IntDecoder getIntDecoder()
           
 ValueDecoderFactory.IntegerDecoder getIntegerDecoder()
           
 ValueDecoderFactory.LongArrayDecoder getLongArrayDecoder()
           
 ValueDecoderFactory.LongArrayDecoder getLongArrayDecoder(long[] result, int offset, int len)
           
 ValueDecoderFactory.LongDecoder getLongDecoder()
           
 ValueDecoderFactory.QNameDecoder getQNameDecoder(NamespaceContext nsc)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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
Constructor Detail

ValueDecoderFactory

public ValueDecoderFactory()
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()


Copyright © 2011 Codehaus. All Rights Reserved.