psdi.util

Class StringStream

  • java.lang.Object
    • java.io.InputStream
      • psdi.util.StringStream
  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable


    public class StringStream
    extends java.io.InputStream
    Helper method feeds a String to a parser object created by JavaCC.
    • Constructor Summary

      Constructors 
      Constructor and Description
      StringStream(java.lang.String text)
      Constructor takes the String to pass down the stream.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      int available() 
      boolean markSupported() 
      int read() 
      • Methods inherited from class java.io.InputStream

        close, mark, read, read, reset, skip
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • StringStream

        public StringStream(java.lang.String text)
        Constructor takes the String to pass down the stream.
    • Method Detail

      • read

        public int read()
                 throws java.io.IOException
        Specified by:
        read in class java.io.InputStream
        Throws:
        java.io.IOException
      • available

        public int available()
                      throws java.io.IOException
        Overrides:
        available in class java.io.InputStream
        Throws:
        java.io.IOException
      • markSupported

        public boolean markSupported()
        Overrides:
        markSupported in class java.io.InputStream