public class ExposedDataOutputStream extends DataOutputStream
writtenout| Constructor and Description |
|---|
ExposedDataOutputStream(OutputStream out)
Creates a new data output stream to write data to the specified
underlying output stream.
|
| Modifier and Type | Method and Description |
|---|---|
OutputStream |
getOutputStream() |
void |
reset() |
void |
write(byte[] b,
int off,
int len)
Writes
len bytes from the specified byte array
starting at offset off to the underlying output stream. |
void |
write(int b) |
flush, size, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTFclose, writeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitwritepublic ExposedDataOutputStream(OutputStream out)
written is
set to zero.out - the underlying output stream, to be saved for later
use.FilterOutputStream.outpublic void reset()
public OutputStream getOutputStream()
public void write(int b)
throws IOException
write in interface DataOutputwrite in class DataOutputStreamIOExceptionpublic void write(byte[] b,
int off,
int len)
throws IOException
len bytes from the specified byte array
starting at offset off to the underlying output stream.
If no exception is thrown, the counter written is
incremented by len.write in interface DataOutputwrite in class DataOutputStreamb - the data.off - the start offset in the data.len - the number of bytes to write.IOException - if an I/O error occurs.FilterOutputStream.outCopyright © 2012 JBoss by Red Hat. All Rights Reserved.