Class StringInputStream

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable

    public class StringInputStream
    extends java.io.InputStream
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected int available  
      protected int charOffset  
      protected java.lang.String str  
      protected int strOffset  
    • Constructor Summary

      Constructors 
      Constructor Description
      StringInputStream​(java.lang.String s)  
    • Method Summary

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

        close, mark, markSupported, nullInputStream, read, read, readAllBytes, readNBytes, readNBytes, reset, skip, transferTo
      • Methods inherited from class java.lang.Object

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

      • strOffset

        protected int strOffset
      • charOffset

        protected int charOffset
      • available

        protected int available
      • str

        protected java.lang.String str
    • Constructor Detail

      • StringInputStream

        public StringInputStream​(java.lang.String s)
    • 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