@PublicEvolving public class BooleanParser extends FieldParser<Boolean>
FieldParser.ParseErrorState| Constructor and Description |
|---|
BooleanParser() |
| Modifier and Type | Method and Description |
|---|---|
Boolean |
createValue()
Returns an instance of the parsed value type.
|
Boolean |
getLastResult()
Gets the parsed field.
|
int |
parseField(byte[] bytes,
int startPos,
int limit,
byte[] delim,
Boolean reuse)
Each parser's logic should be implemented inside this method
|
delimiterNext, getErrorState, getParserForType, resetErrorStateAndParse, resetParserState, setErrorStatepublic int parseField(byte[] bytes,
int startPos,
int limit,
byte[] delim,
Boolean reuse)
FieldParserparseField in class FieldParser<Boolean>FieldParser#parseField(byte[], int, int, byte[], Object)}public Boolean 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<Boolean>public Boolean createValue()
FieldParsercreateValue in class FieldParser<Boolean>Copyright © 2014–2016 The Apache Software Foundation. All rights reserved.