Top Description Constructors Methods
org.codehaus.stax2.typed

public abstract Class TypedArrayDecoder

extends Object
Class Inheritance
Known Direct Subclasses
org.codehaus.stax2.ri.typed.ValueDecoderFactory.BaseArrayDecoder

Base class that defines decoder used for decoding multiple elements of an array type. Implementations typically use an embedded instance of TypedValueDecoder for decoding individual values.

Set of concrete implementations is included in the reference implementation of the Typed Access API.

Author
Tatu Saloranta
Since
3.0

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public abstract boolean

Returns:

True if decoding is complete, that is, no more elements can be added to contained array
decodeValue
(String input)

Method called to decode single (element) value that given textual input contains and store it in result array.

public abstract boolean
decodeValue(char[] buffer, int start, int end)

public abstract int

Returns:

Number of elements decoded and contained
getCount
()

public abstract boolean
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

TypedArrayDecoderback to summary
public TypedArrayDecoder()

Method Detail

decodeValueback to summary
public abstract boolean decodeValue(String input) throws IllegalArgumentException

Method called to decode single (element) value that given textual input contains and store it in result array.

Returns:boolean

True if decoding is complete, that is, no more elements can be added to contained array

decodeValueback to summary
public abstract boolean decodeValue(char[] buffer, int start, int end) throws IllegalArgumentException
getCountback to summary
public abstract int getCount()
Returns:int

Number of elements decoded and contained

hasRoomback to summary
public abstract boolean hasRoom()