Top Description Inners Fields Constructors Methods
org.codehaus.stax2.ri.typed

public final Class ValueEncoderFactory

extends Object
Class Inheritance
Imports
org.codehaus.stax2.typed.Base64Variant

Factory class used to construct all AsciiValueEncoder instances needed by a single stream writer instance. Simple encoders 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. More complex ones (array based, long string) are not recycled.

Since encoders are recycled, instances are not thread-safe.

Since
3.0

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv abstract static class
ValueEncoderFactory.ArrayEncoder

Intermediate base class for encoders that deal with arrays of values.

pack-priv static class
pack-priv static class
pack-priv static class
pack-priv static class
pack-priv static class
pack-priv static class
ValueEncoderFactory.IntArrayEncoder

Concrete implementation used for encoding int[] content.

pack-priv static class
pack-priv static class
pack-priv static class
pack-priv abstract static class
ValueEncoderFactory.ScalarEncoder

Intermediate base class for encoders that deal with single primitive values.

pack-priv static class
ValueEncoderFactory.StringEncoder

Implementation of textual encoder that operates on longer textual values.

pack-priv static class
ValueEncoderFactory.TokenEncoder

Implementation of textual encoder that operates on short textual values ("tokens").

pack-priv abstract static class
ValueEncoderFactory.TypedScalarEncoder

Intermediate base class for typed (non-textual) scalar values

Field Summary

Modifier and TypeField and Description
protected ValueEncoderFactory.DoubleEncoder
protected ValueEncoderFactory.FloatEncoder
protected ValueEncoderFactory.IntEncoder
protected ValueEncoderFactory.LongEncoder
protected ValueEncoderFactory.TokenEncoder
pack-priv static final byte

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public ValueEncoderFactory.ScalarEncoder
getEncoder(boolean value)

public ValueEncoderFactory.IntEncoder
getEncoder(int value)

public ValueEncoderFactory.LongEncoder
getEncoder(long value)

public ValueEncoderFactory.FloatEncoder
getEncoder(float value)

public ValueEncoderFactory.DoubleEncoder
getEncoder(double value)

public ValueEncoderFactory.IntArrayEncoder
getEncoder(int[] values, int from, int length)

public ValueEncoderFactory.LongArrayEncoder
getEncoder(long[] values, int from, int length)

public ValueEncoderFactory.FloatArrayEncoder
getEncoder(float[] values, int from, int length)

public ValueEncoderFactory.DoubleArrayEncoder
getEncoder(double[] values, int from, int length)

public ValueEncoderFactory.Base64Encoder
getEncoder(Base64Variant v, byte[] data, int from, int length)

public ValueEncoderFactory.ScalarEncoder
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait