Class JSONStreamReader

  • All Implemented Interfaces:
    JSONReader

    public class JSONStreamReader
    extends JSONStringReader
    The Class JSONStreamReader.
    Since:
    0.8
    Author:
    Haiyang Li
    • Method Detail

      • parse

        public static JSONReader parse​(Reader reader,
                                       char[] rbuf,
                                       char[] cbuf)
        Parameters:
        reader -
        rbuf -
        cbuf -
        Returns:
      • nextToken

        public int nextToken()
                      throws IOException
        TODO performance improvement: Refer to the test above. TODO limitation: the maximum length of property value is the buffer size.
        Specified by:
        nextToken in interface JSONReader
        Overrides:
        nextToken in class JSONStringReader
        Returns:
        Throws:
        IOException - Signals that an I/O exception has occurred.