public class JSONReader extends Object implements Closeable
Constructor and Description |
---|
JSONReader(DefaultJSONParser parser) |
JSONReader(JSONLexer lexer) |
JSONReader(Reader reader) |
JSONReader(Reader reader,
Feature... features) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
config(Feature feature,
boolean state) |
void |
endArray() |
void |
endObject() |
Locale |
getLocal() |
TimeZone |
getTimzeZone() |
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 |
setLocale(Locale locale) |
void |
setTimzeZone(TimeZone timezone) |
void |
startArray() |
void |
startObject() |
public JSONReader(Reader reader)
public JSONReader(JSONLexer lexer)
public JSONReader(DefaultJSONParser parser)
public void setTimzeZone(TimeZone timezone)
public void setLocale(Locale locale)
public void config(Feature feature, boolean state)
public Locale getLocal()
public TimeZone getTimzeZone()
public void startObject()
public void endObject()
public void startArray()
public void endArray()
public boolean hasNext()
public int peek()
public void close()
close
in interface Closeable
close
in interface AutoCloseable
public 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–2022 Alibaba Group. All rights reserved.