public class JSONReader extends Object implements Closeable
| Constructor and Description |
|---|
JSONReader(DefaultJSONParser parser) |
JSONReader(JSONLexer lexer) |
JSONReader(Reader reader) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
config(Feature feature,
boolean state) |
void |
endArray() |
void |
endObject() |
boolean |
hasNext() |
int |
peek() |
Integer |
readInteger() |
Long |
readLong() |
Object |
readObject() |
<T> T |
readObject(Class<T> type) |
Object |
readObject(Map object) |
void |
readObject(Object object) |
<T> T |
readObject(Type type) |
<T> T |
readObject(TypeReference<T> typeRef) |
String |
readString() |
void |
startArray() |
void |
startObject() |
public JSONReader(Reader reader)
public JSONReader(JSONLexer lexer)
public JSONReader(DefaultJSONParser parser)
public void config(Feature feature, boolean state)
public void startObject()
public void endObject()
public void startArray()
public void endArray()
public boolean hasNext()
public int peek()
public void close()
close in interface Closeableclose in interface AutoCloseablepublic Integer readInteger()
public Long readLong()
public String readString()
public <T> T readObject(TypeReference<T> typeRef)
public <T> T readObject(Type type)
public <T> T readObject(Class<T> type)
public void readObject(Object object)
public Object readObject()
Copyright © 2012–2018 Alibaba Group. All rights reserved.