Movatterモバイル変換
[0]ホーム
Method Summary
Methods declared in class java.lang.Object
clone,equals,finalize,getClass,hashCode,notify,notifyAll,toString,wait,wait,wait
Constructor Detail
CheckedInputStream
public CheckedInputStream(InputStream in,Checksum cksum)
Creates an input stream using the specified Checksum.
- Parameters:
in - the input streamcksum - the Checksum
Method Detail
read
public int read(byte[] buf, int off, int len) throwsIOException
Reads into an array of bytes. Iflen is not zero, the method blocks until some input is available; otherwise, no bytes are read and0 is returned.
- Overrides:
read in class FilterInputStream- Parameters:
buf - the buffer into which the data is readoff - the start offset in the destination arrayblen - the maximum number of bytes read- Returns:
- the actual number of bytes read, or -1 if the end of the stream is reached.
- Throws:
NullPointerException - Ifbuf isnull.IndexOutOfBoundsException - Ifoff is negative,len is negative, orlen is greater thanbuf.length - offIOException - if an I/O error has occurred- See Also:
FilterInputStream.in
[8]ページ先頭