Package org.codehaus.stax2.ri.typed
Class ValueEncoderFactory.LongEncoder
- java.lang.Object
-
- org.codehaus.stax2.ri.typed.AsciiValueEncoder
-
- org.codehaus.stax2.ri.typed.ValueEncoderFactory.ScalarEncoder
-
- org.codehaus.stax2.ri.typed.ValueEncoderFactory.TypedScalarEncoder
-
- org.codehaus.stax2.ri.typed.ValueEncoderFactory.LongEncoder
-
- Enclosing class:
- ValueEncoderFactory
static final class ValueEncoderFactory.LongEncoder extends ValueEncoderFactory.TypedScalarEncoder
-
-
Field Summary
Fields Modifier and Type Field Description (package private) long_value-
Fields inherited from class org.codehaus.stax2.ri.typed.AsciiValueEncoder
MIN_CHARS_WITHOUT_FLUSH
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedLongEncoder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intencodeMore(byte[] buffer, int ptr, int end)intencodeMore(char[] buffer, int ptr, int end)protected voidreset(long value)-
Methods inherited from class org.codehaus.stax2.ri.typed.ValueEncoderFactory.TypedScalarEncoder
isCompleted
-
Methods inherited from class org.codehaus.stax2.ri.typed.AsciiValueEncoder
bufferNeedsFlush
-
-
-
-
Method Detail
-
reset
protected void reset(long value)
-
encodeMore
public int encodeMore(char[] buffer, int ptr, int end)- Specified by:
encodeMorein classAsciiValueEncoder- Returns:
- Value of pointer after all remaining data (which
may be "none") that can be encoded (as constrained by
buffer length) has been encoded. Has to exceed 'ptr'
value sent in; will be equal to it if nothing was
encoded (which should only occur when everything has
been encoded, as long as
AsciiValueEncoder.bufferNeedsFlush(int)is appropriately called once before calling this method)
-
encodeMore
public int encodeMore(byte[] buffer, int ptr, int end)- Specified by:
encodeMorein classAsciiValueEncoder- Returns:
- Value of pointer after all remaining data (which
may be "none") that can be encoded (as constrained by
buffer length) has been encoded. Has to exceed 'ptr'
value sent in; will be equal to it if nothing was
encoded (which should only occur when everything has
been encoded, as long as
AsciiValueEncoder.bufferNeedsFlush(int)is appropriately called once before calling this method)
-
-