| Interface | osid.transport.DataOutputStream | ||
|---|---|---|---|
| Description |
The data output stream provides a means in which data can be written to a stream. | ||
| Method | write | ||
| Description |
Writes | ||
| Parameters | byte[] | buf | the buffer containing the data to write |
cardinal | n | the number of bytes to write | |
| Errors | ILLEGAL_STATE | this stream has been closed | |
| INVALID_ARGUMENT | buf does not contain n bytes | ||
| NULL_ARGUMENT | buf is null | ||
| OPERATION_FAILED | unable to complete request | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | writeStream | ||
| Description |
Writes a stream to this stream. | ||
| Parameters | osid.transport.DataInputStream | stream | an input stream |
| Errors | ILLEGAL_STATE | this stream has been closed | |
| NULL_ARGUMENT | stream is null | ||
| OPERATION_FAILED | unable to complete request | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | close | ||
| Description |
Flushes the output, closes this stream and frees up any allocated resources. Methods in this object may not be invoked after this method is called. | ||
| Errors | ILLEGAL_STATE | this stream has been closed | |
| Compliance | mandatory | This method must be implemented. | |