Class StringProvider

    • Constructor Detail

      • StringProvider

        public StringProvider​(String string)
    • Method Detail

      • read

        public int read​(char[] cbuf,
                        int off,
                        int len)
                 throws IOException
        Description copied from interface: Provider
        Reads characters into an array
        Specified by:
        read in interface Provider
        Parameters:
        cbuf - Destination buffer
        off - Offset at which to start storing characters
        Returns:
        The number of characters read, or -1 if all read
        Throws:
        IOException
      • close

        public void close()
                   throws IOException
        Description copied from interface: Provider
        Closes the stream and releases any system resources associated with it.
        Specified by:
        close in interface Provider
        Throws:
        IOException