类 ANTLRReaderStream

  • 所有已实现的接口:
    CharStream, IntStream
    直接已知子类:
    ANTLRInputStream

    public class ANTLRReaderStream
    extends ANTLRStringStream
    Vacuum all input from a Reader and then treat it like a StringStream. Manage the buffer manually to avoid unnecessary data copying. If you need encoding, use ANTLRInputStream.
    • 字段详细资料

      • READ_BUFFER_SIZE

        public static final int READ_BUFFER_SIZE
        另请参阅:
        常量字段值
      • INITIAL_BUFFER_SIZE

        public static final int INITIAL_BUFFER_SIZE
        另请参阅:
        常量字段值
    • 构造器详细资料

      • ANTLRReaderStream

        public ANTLRReaderStream()
      • ANTLRReaderStream

        public ANTLRReaderStream​(java.io.Reader r)
                          throws java.io.IOException
        抛出:
        java.io.IOException
      • ANTLRReaderStream

        public ANTLRReaderStream​(java.io.Reader r,
                                 int size)
                          throws java.io.IOException
        抛出:
        java.io.IOException
      • ANTLRReaderStream

        public ANTLRReaderStream​(java.io.Reader r,
                                 int size,
                                 int readChunkSize)
                          throws java.io.IOException
        抛出:
        java.io.IOException
    • 方法详细资料

      • load

        public void load​(java.io.Reader r,
                         int size,
                         int readChunkSize)
                  throws java.io.IOException
        抛出:
        java.io.IOException