Class UnicodeEscapeProcessingProvider

  • All Implemented Interfaces:
    Provider

    public class UnicodeEscapeProcessingProvider
    extends Object
    implements Provider
    An implementation of interface CharStream, where the stream is assumed to contain only ASCII characters (with java-like unicode escape processing).
    • Field Detail

      • column

        protected int column
      • line

        protected int line
      • buffer

        protected char[] buffer
    • Method Detail

      • read

        public int read​(char[] buffer,
                        int offset,
                        int len)
        Description copied from interface: Provider
        Reads characters into an array
        Specified by:
        read in interface Provider
        Parameters:
        buffer - Destination buffer
        offset - Offset at which to start storing characters
        Returns:
        The number of characters read, or -1 if all read
      • close

        public void close()
                   throws IOException
        Description copied from interface: Provider
        Closes the stream and releases any system resources associated with it.
        Specified by:
        close in interface Provider
        Throws:
        IOException