public class JSONReaderAsync extends Object
XMLStreamEventsAsync.| Modifier and Type | Class and Description |
|---|---|
static class |
JSONReaderAsync.EventType
Type of events.
|
| Modifier and Type | Field and Description |
|---|---|
Boolean |
bool |
JSONReaderAsync.EventType |
event |
Number |
number
A BigInteger or a BigDecimal.
|
net.lecousin.framework.util.UnprotectedStringBuffer |
string
Contains the attribute name with START_ATTRIBUTE, or string value with STRING event, or the numeric value as string with NUMBER event.
|
| Constructor and Description |
|---|
JSONReaderAsync(net.lecousin.framework.io.text.BufferedReadableCharacterStreamLocation input)
Constructor.
|
JSONReaderAsync(net.lecousin.framework.io.text.ICharacterStream.Readable.Buffered input)
Constructor.
|
JSONReaderAsync(net.lecousin.framework.io.IO.Readable.Buffered input,
Charset encoding)
Constructor.
|
JSONReaderAsync(net.lecousin.framework.io.IO.Readable input,
Charset encoding)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
JSONParsingException |
error(String message)
Creates a JSONParsingException.
|
int |
getMaximumTextSize() |
net.lecousin.framework.concurrent.async.Async<Exception> |
next()
Read the next event.
|
void |
setMaximumTextSize(int max) |
public JSONReaderAsync.EventType event
public Number number
public Boolean bool
public net.lecousin.framework.util.UnprotectedStringBuffer string
public JSONReaderAsync(net.lecousin.framework.io.IO.Readable input,
Charset encoding)
public JSONReaderAsync(net.lecousin.framework.io.IO.Readable.Buffered input,
Charset encoding)
public JSONReaderAsync(net.lecousin.framework.io.text.ICharacterStream.Readable.Buffered input)
public JSONReaderAsync(net.lecousin.framework.io.text.BufferedReadableCharacterStreamLocation input)
public int getMaximumTextSize()
public void setMaximumTextSize(int max)
public net.lecousin.framework.concurrent.async.Async<Exception> next()
EOFException in case the end of stream has been reached without other error.public JSONParsingException error(String message)
Copyright © 2019. All rights reserved.