Class JSONReader

java.lang.Object
com.alibaba.fastjson.JSONReader
All Implemented Interfaces:
Closeable, AutoCloseable

public class JSONReader extends Object implements Closeable
  • Constructor Details

    • JSONReader

      public JSONReader(Reader reader)
    • JSONReader

      public JSONReader(Reader input, Feature... features)
  • Method Details

    • setLocale

      public void setLocale(Locale locale)
    • setTimzeZone

      public void setTimzeZone(TimeZone timezone)
    • readObject

      public <T> T readObject(Class<T> type)
    • readObject

      public Object readObject()
    • readObject

      public void readObject(Object object)
    • readInteger

      public Integer readInteger()
    • readLong

      public Long readLong()
    • readString

      public String readString()
    • hasNext

      public boolean hasNext()
    • startArray

      public void startArray()
    • endArray

      public void endArray()
    • startObject

      public void startObject()
    • endObject

      public void endObject()
    • getLocal

      public Locale getLocal()
    • getTimeZone

      public TimeZone getTimeZone()
    • config

      public void config(Feature feature, boolean state)
    • close

      public void close() throws IOException
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Throws:
      IOException