Package com.landawn.abacus.parser
Interface JSONReader
-
- All Known Implementing Classes:
JSONStreamReader
,JSONStringReader
public interface JSONReader
The Interface JSONReader.- Since:
- 0.8
- Author:
- Haiyang Li
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
JSONReader.SymbolReader
Added for performance tuning.
-
Field Summary
Fields Modifier and Type Field Description static int
COLON
The Constant COLON.static int
COMMA
The Constant COMMA.static int
END_BRACE
The Constant END_BRACE.static int
END_BRACKET
The Constant END_BRACKET.static int
END_QUOTATION_D
The Constant END_QUOTATION_D.static int
END_QUOTATION_S
The Constant END_QUOTATION_S.static int
EOR
The Constant EOR.static int
START_BRACE
The Constant START_BRACE.static int
START_BRACKET
The Constant START_BRACKET.static int
START_QUOTATION_D
The Constant START_QUOTATION_D.static int
START_QUOTATION_S
The Constant START_QUOTATION_S.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
close()
String
getText()
Gets the text.boolean
hasText()
Checks for text.int
nextToken()
ParserUtil.PropInfo
readPropInfo(JSONReader.SymbolReader symbolReader)
Read prop info.<T> T
readValue(com.landawn.abacus.type.Type<T> type)
-
-
-
Field Detail
-
EOR
static final int EOR
The Constant EOR.- See Also:
- Constant Field Values
-
START_BRACE
static final int START_BRACE
The Constant START_BRACE.- See Also:
- Constant Field Values
-
END_BRACE
static final int END_BRACE
The Constant END_BRACE.- See Also:
- Constant Field Values
-
START_BRACKET
static final int START_BRACKET
The Constant START_BRACKET.- See Also:
- Constant Field Values
-
END_BRACKET
static final int END_BRACKET
The Constant END_BRACKET.- See Also:
- Constant Field Values
-
START_QUOTATION_D
static final int START_QUOTATION_D
The Constant START_QUOTATION_D.- See Also:
- Constant Field Values
-
END_QUOTATION_D
static final int END_QUOTATION_D
The Constant END_QUOTATION_D.- See Also:
- Constant Field Values
-
START_QUOTATION_S
static final int START_QUOTATION_S
The Constant START_QUOTATION_S.- See Also:
- Constant Field Values
-
END_QUOTATION_S
static final int END_QUOTATION_S
The Constant END_QUOTATION_S.- See Also:
- Constant Field Values
-
COLON
static final int COLON
The Constant COLON.- See Also:
- Constant Field Values
-
COMMA
static final int COMMA
The Constant COMMA.- See Also:
- Constant Field Values
-
-
Method Detail
-
hasText
boolean hasText() throws IOException
Checks for text.- Returns:
- true, if successful
- Throws:
IOException
- Signals that an I/O exception has occurred.
-
nextToken
int nextToken() throws IOException
- Returns:
- - 1 is returned if no next symbol is found.
- Throws:
IOException
- Signals that an I/O exception has occurred.
-
getText
String getText() throws IOException
Gets the text.- Returns:
- Throws:
IOException
- Signals that an I/O exception has occurred.
-
readValue
<T> T readValue(com.landawn.abacus.type.Type<T> type) throws IOException
- Type Parameters:
T
-- Parameters:
type
-- Returns:
- Throws:
IOException
- Signals that an I/O exception has occurred.
-
readPropInfo
ParserUtil.PropInfo readPropInfo(JSONReader.SymbolReader symbolReader)
Read prop info.- Parameters:
symbolReader
-- Returns:
-
close
void close() throws IOException
- Throws:
IOException
- Signals that an I/O exception has occurred.
-
-