Class VelocityCharStream

  • All Implemented Interfaces:
    CharStream

    @Deprecated
    public final class VelocityCharStream
    extends Object
    implements CharStream
    Deprecated.
    Will be removed, replaced with SimpleCharStream
    An implementation of interface CharStream, where the stream is assumed to contain only ASCII characters (without unicode processing).
    • Field Detail

      • bufpos

        public int bufpos
        Deprecated.
    • Constructor Detail

      • VelocityCharStream

        public VelocityCharStream​(InputStream dstream,
                                  int startline,
                                  int startcolumn,
                                  int buffersize)
        Deprecated.
        Parameters:
        dstream -
        startline -
        startcolumn -
        buffersize -
      • VelocityCharStream

        public VelocityCharStream​(InputStream dstream,
                                  int startline,
                                  int startcolumn)
        Deprecated.
        Parameters:
        dstream -
        startline -
        startcolumn -
      • VelocityCharStream

        public VelocityCharStream​(Reader dstream,
                                  int startline,
                                  int startcolumn,
                                  int buffersize)
        Deprecated.
        Parameters:
        dstream -
        startline -
        startcolumn -
        buffersize -
      • VelocityCharStream

        public VelocityCharStream​(Reader dstream,
                                  int startline,
                                  int startcolumn)
        Deprecated.
        Parameters:
        dstream -
        startline -
        startcolumn -
    • Method Detail

      • getEndLine

        public int getEndLine()
        Deprecated.
        Specified by:
        getEndLine in interface CharStream
      • backup

        public void backup​(int amount)
        Deprecated.
        Specified by:
        backup in interface CharStream
      • reInit

        public void reInit​(Reader dstream,
                           int startline,
                           int startcolumn,
                           int buffersize)
        Deprecated.
        Parameters:
        dstream -
        startline -
        startcolumn -
        buffersize -
      • reInit

        public void reInit​(Reader dstream,
                           int startline,
                           int startcolumn)
        Deprecated.
        Parameters:
        dstream -
        startline -
        startcolumn -
      • reInit

        public void reInit​(InputStream dstream,
                           int startline,
                           int startcolumn,
                           int buffersize)
        Deprecated.
        Parameters:
        dstream -
        startline -
        startcolumn -
        buffersize -
      • reInit

        public void reInit​(InputStream dstream,
                           int startline,
                           int startcolumn)
        Deprecated.
        Parameters:
        dstream -
        startline -
        startcolumn -
      • GetSuffix

        public char[] GetSuffix​(int len)
        Deprecated.
        Specified by:
        GetSuffix in interface CharStream
      • Done

        public void Done()
        Deprecated.
        Specified by:
        Done in interface CharStream
      • adjustBeginLineColumn

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