public class ShortValueParser extends FieldParser<ShortValue>
ShortValue.
Only characters '1' to '0' and '-' are allowed.FieldParser.ParseErrorState| Constructor and Description |
|---|
ShortValueParser() |
| Modifier and Type | Method and Description |
|---|---|
ShortValue |
createValue()
Returns an instance of the parsed value type.
|
ShortValue |
getLastResult()
Gets the parsed field.
|
int |
parseField(byte[] bytes,
int startPos,
int limit,
byte[] delimiter,
ShortValue reusable)
Parses the value of a field from the byte array.
|
delimiterNext, getErrorState, getParserForType, setErrorStatepublic int parseField(byte[] bytes,
int startPos,
int limit,
byte[] delimiter,
ShortValue reusable)
FieldParserparseField in class FieldParser<ShortValue>bytes - The byte array that holds the value.startPos - The index where the field startslimit - The limit unto which the byte contents is valid for the parser. The limit is the
position one after the last valid byte.delimiter - The field delimiter characterreusable - An optional reusable field to hold the valuepublic ShortValue createValue()
FieldParsercreateValue in class FieldParser<ShortValue>public ShortValue getLastResult()
FieldParserFieldParser.parseField(byte[], int, int, byte[], Object). It objects are mutable and reused, it will return
the object instance that was passed the parse function.getLastResult in class FieldParser<ShortValue>Copyright © 2014–2016 The Apache Software Foundation. All rights reserved.