API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.util.zip. CheckedInputStream View Source
Author(s)
David Connelly
Since
Version
1.22, 04/07/06
Serial
Hierarchy
 Object
      InputStream
          FilterInputStream
              CheckedInputStream
Implements
Subclasses
Description
public class CheckedInputStream
  An input stream that also maintains a checksum of the data being read.
See also:    Checksum
Constructors
public CheckedInputStream (InputStream in, Checksum cksum)
  Creates an input stream using the specified Checksum.
Methods
Hide/Show inherited methods
public int available () throws IOException [Inherited From FilterInputStream]
  Returns an estimate of the number of bytes that can be read (or skipped over) from this input stream without blocking by the next caller of a method for this input stream.
public void close () throws IOException [Inherited From FilterInputStream]
  Closes this input stream and releases any system resources associated with the stream.
public Checksum getChecksum ()
  Returns the Checksum for this input stream.
publicsynchronized void mark (int readlimit) [Inherited From FilterInputStream]
  Marks the current position in this input stream.
public boolean markSupported () [Inherited From FilterInputStream]
  Tests if this input stream supports the mark and reset methods.
public int read () throws IOException [Overrides FilterInputStream] [Specified in InputStream]
  Reads a byte.
public int read (byte[] b) throws IOException [Inherited From FilterInputStream]
  Reads up to byte.length bytes of data from this input stream into an array of bytes.
public int read (byte[] buf, int off, int len) throws IOException [Overrides FilterInputStream]
  Reads into an array of bytes.
publicsynchronized void reset () throws IOException [Inherited From FilterInputStream]
  Repositions this stream to the position at the time the mark method was last called on this input stream.
public long skip (long n) throws IOException [Overrides FilterInputStream]
  Skips specified number of bytes of input.
Fields
Hide/Show inherited fields
protectedvolatile InputStream in [Inherited From FilterInputStream]
The input stream to be filtered.
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar