Class JavaCharStream

java.lang.Object
com.thaiopensource.relaxng.parse.compact.JavaCharStream

public final class JavaCharStream extends Object
An implementation of interface CharStream, where the stream is assumed to contain 16-bit unicode characters.
  • Field Details

    • staticFlag

      public static final boolean staticFlag
      See Also:
    • bufpos

      public int bufpos
  • Constructor Details

  • Method Details

    • setTabSize

      protected void setTabSize(int i)
    • getTabSize

      protected int getTabSize(int i)
    • BeginToken

      public final char BeginToken() throws com.thaiopensource.relaxng.parse.compact.EOFException
      Throws:
      com.thaiopensource.relaxng.parse.compact.EOFException
    • readChar

      public final char readChar() throws com.thaiopensource.relaxng.parse.compact.EOFException
      Throws:
      com.thaiopensource.relaxng.parse.compact.EOFException
    • getColumn

      public final int getColumn()
      Deprecated.
      See Also:
    • getLine

      public final int getLine()
      Deprecated.
      See Also:
    • getEndColumn

      public final int getEndColumn()
    • getEndLine

      public final int getEndLine()
    • getBeginColumn

      public final int getBeginColumn()
    • getBeginLine

      public final int getBeginLine()
    • backup

      public final void backup(int amount)
    • ReInit

      public void ReInit(Reader dstream, int startline, int startcolumn, int buffersize)
    • ReInit

      public void ReInit(Reader dstream, int startline, int startcolumn)
    • ReInit

      public void ReInit(Reader dstream)
    • ReInit

      public void ReInit(InputStream dstream, String encoding, int startline, int startcolumn, int buffersize) throws UnsupportedEncodingException
      Throws:
      UnsupportedEncodingException
    • ReInit

      public void ReInit(InputStream dstream, int startline, int startcolumn, int buffersize)
    • ReInit

      public void ReInit(InputStream dstream, String encoding, int startline, int startcolumn) throws UnsupportedEncodingException
      Throws:
      UnsupportedEncodingException
    • ReInit

      public void ReInit(InputStream dstream, int startline, int startcolumn)
    • ReInit

      public void ReInit(InputStream dstream, String encoding) throws UnsupportedEncodingException
      Throws:
      UnsupportedEncodingException
    • ReInit

      public void ReInit(InputStream dstream)
    • GetImage

      public final String GetImage()
    • GetSuffix

      public final char[] GetSuffix(int len)
    • Done

      public void Done()
    • adjustBeginLineColumn

      public void adjustBeginLineColumn(int newLine, int newCol)
      Method to adjust line and column numbers for the start of a token.