API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.io. StringBufferInputStream View Source
Author(s)
Arthur van Hoff
Since
JDK1.0
Version
1.27, 11/17/05
Serial
Hierarchy
 Object
      InputStream
          StringBufferInputStream
Implements
Subclasses
Description
@Deprecated
public class StringBufferInputStream
  This class allows an application to create an input stream in which the bytes read are supplied by the contents of a string.
Constructors
public StringBufferInputStream (String s)
  Creates a string input stream to read data from the specified string.
Methods
Hide/Show inherited methods
publicsynchronized int available () [Overrides InputStream]
  Returns the number of bytes that can be read from the input stream without blocking.
public void close () throws IOException [Inherited From InputStream]
  Closes this input stream and releases any system resources associated with the stream.
publicsynchronized void mark (int readlimit) [Inherited From InputStream]
  Marks the current position in this input stream.
public boolean markSupported () [Inherited From InputStream]
  Tests if this input stream supports the mark and reset methods.
publicsynchronized int read () [Specified in InputStream]
  Reads the next byte of data from this input stream.
public int read (byte[] b) throws IOException [Inherited From InputStream]
  Reads some number of bytes from the input stream and stores them into the buffer array b.
publicsynchronized int read (byte[] b, int off, int len) [Overrides InputStream]
  Reads up to len bytes of data from this input stream into an array of bytes.
publicsynchronized void reset () [Overrides InputStream]
Resets the input stream to begin reading from the first character of this input stream's underlying buffer.
publicsynchronized long skip (long n) [Overrides InputStream]
  Skips n bytes of input from this input stream.
Fields
Hide/Show inherited fields
protected String buffer
The string from which bytes are read.
protected int count
  The number of valid characters in the input stream buffer.
protected int pos
  The index of the next character to read from the input stream buffer.
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar