|
Préférences
Moteurs de recherche
|
||||||||||||||||||||
| JavaTM 2 Platform Std. Ed. v1.6.0
java.util.zip
|
|||||||||||||||||||||
| Field Summary |
|---|
| Fields inherited from class java.io.FilterOutputStream |
|---|
out |
| Constructor Summary | |
|---|---|
CheckedOutputStream(OutputStream out,
Checksum cksum)
Creates an output stream with the specified Checksum. |
|
| Method Summary | |
|---|---|
Checksum |
getChecksum()
Returns the Checksum for this output stream. |
void |
write(byte[] b,
int off,
int len)
Writes an array of bytes. |
void |
write(int b)
Writes a byte. |
| Methods inherited from class java.io.FilterOutputStream |
|---|
close, flush, write |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CheckedOutputStream(OutputStream out, Checksum cksum)
out - the output streamcksum - the checksum| Method Detail |
|---|
public void write(int b)
throws IOException
write in class FilterOutputStreamb - the byte to be written
IOException - if an I/O error has occurred
public void write(byte[] b,
int off,
int len)
throws IOException
write in class FilterOutputStreamb - the data to be writtenoff - the start offset of the datalen - the number of bytes to be written
IOException - if an I/O error has occurredFilterOutputStream.write(int)public Checksum getChecksum()