public interface DataOutputStream
The data output stream provides a means in which data can be written to a stream.
Modifier and Type | Method and Description |
---|---|
void |
close()
Flushes the output, closes this stream and frees up any allocated
resources.
|
void |
write(byte[] buf,
long n)
Writes
n bytes to this stream. |
void |
writeStream(DataInputStream stream)
Writes a stream to this stream.
|
void write(byte[] buf, long n) throws OperationFailedException
n
bytes to this stream.buf
- the buffer containing the data to writen
- the number of bytes
to writeIllegalStateException
- this stream has been closedInvalidArgumentException
- buf
does not
contain n bytes
NullArgumentException
- buf
is
null
OperationFailedException
- unable to complete requestmandatory
- This method must be implemented. void writeStream(DataInputStream stream) throws OperationFailedException
stream
- an input streamIllegalStateException
- this stream has been closedNullArgumentException
- stream
is
null
OperationFailedException
- unable to complete requestmandatory
- This method must be implemented. void close()
IllegalStateException
- this stream has been closedmandatory
- This method must be implemented.