@PublicEvolving public class BooleanValueParser extends FieldParser<BooleanValue>
FieldParser.ParseErrorState
Constructor and Description |
---|
BooleanValueParser() |
Modifier and Type | Method and Description |
---|---|
BooleanValue |
createValue()
Returns an instance of the parsed value type.
|
BooleanValue |
getLastResult()
Gets the parsed field.
|
int |
parseField(byte[] bytes,
int startPos,
int limit,
byte[] delim,
BooleanValue reuse)
Parses the value of a field from the byte array.
|
delimiterNext, getErrorState, getParserForType, setErrorState
public int parseField(byte[] bytes, int startPos, int limit, byte[] delim, BooleanValue reuse)
FieldParser
parseField
in class FieldParser<BooleanValue>
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.delim
- The field delimiter characterreuse
- An optional reusable field to hold the valuepublic BooleanValue getLastResult()
FieldParser
FieldParser.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<BooleanValue>
public BooleanValue createValue()
FieldParser
createValue
in class FieldParser<BooleanValue>
Copyright © 2014–2017 The Apache Software Foundation. All rights reserved.