Package org.codehaus.stax2.ri.typed
Class ValueEncoderFactory.IntArrayEncoder
java.lang.Object
org.codehaus.stax2.ri.typed.AsciiValueEncoder
org.codehaus.stax2.ri.typed.ValueEncoderFactory.ArrayEncoder
org.codehaus.stax2.ri.typed.ValueEncoderFactory.IntArrayEncoder
- Enclosing class:
ValueEncoderFactory
Concrete implementation used for encoding int[] content.
-
Field Summary
FieldsFields inherited from class org.codehaus.stax2.ri.typed.ValueEncoderFactory.ArrayEncoder
_end, _ptr
Fields inherited from class org.codehaus.stax2.ri.typed.AsciiValueEncoder
MIN_CHARS_WITHOUT_FLUSH
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
encodeMore
(byte[] buffer, int ptr, int end) int
encodeMore
(char[] buffer, int ptr, int end) Methods inherited from class org.codehaus.stax2.ri.typed.ValueEncoderFactory.ArrayEncoder
isCompleted
Methods inherited from class org.codehaus.stax2.ri.typed.AsciiValueEncoder
bufferNeedsFlush
-
Field Details
-
_values
final int[] _values
-
-
Constructor Details
-
IntArrayEncoder
protected IntArrayEncoder(int[] values, int from, int length)
-
-
Method Details
-
encodeMore
public int encodeMore(char[] buffer, int ptr, int end) - Specified by:
encodeMore
in classValueEncoderFactory.ArrayEncoder
- 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:
encodeMore
in 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)
-