Class StringInputStream

    • Constructor Detail

      • StringInputStream

        public StringInputStream​(String source)
        Deprecated.
        Composes a stream from a String
        Parameters:
        source - The string to read from. Must not be null.
    • Method Detail

      • read

        public int read()
                 throws IOException
        Deprecated.
        Reads from the Stringreader, returning the same value. Note that data will be lost for characters not in ISO Latin 1. Clients assuming a return value in the range -1 to 255 may even fail on such input.
        Specified by:
        read in class InputStream
        Returns:
        the value of the next character in the StringReader
        Throws:
        IOException - if the original StringReader fails to be read
      • mark

        public void mark​(int limit)
        Deprecated.
        Marks the read limit of the StringReader.
        Overrides:
        mark in class InputStream
        Parameters:
        limit - the maximum limit of bytes that can be read before the mark position becomes invalid