public class ExposedDataOutputStream
extends java.io.DataOutputStream
Constructor | Description |
---|---|
ExposedDataOutputStream(java.io.OutputStream out) |
Creates a new data output stream to write data to the specified
underlying output stream.
|
Modifier and Type | Method | Description |
---|---|---|
java.io.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) |
Writes the specified byte (the low eight bits of the argument
b ) to the underlying output stream. |
public ExposedDataOutputStream(java.io.OutputStream out)
written
is
set to zero.out
- the underlying output stream, to be saved for later
use.FilterOutputStream.out
public void reset()
public java.io.OutputStream getOutputStream()
public void write(int b) throws java.io.IOException
b
) to the underlying output stream. If no exception
is thrown, the counter written
is incremented by
1
.
Implements the write
method of OutputStream
.
write
in class java.io.DataOutputStream
b
- the byte
to be written.java.io.IOException
- if an I/O error occurs.FilterOutputStream.out
public void write(byte[] b, int off, int len) throws java.io.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 class java.io.DataOutputStream
b
- the data.off
- the start offset in the data.len
- the number of bytes to write.java.io.IOException
- if an I/O error occurs.FilterOutputStream.out
Copyright ? 1998-2008 Bela Ban. All Rights Reserved.