OSID Logo
OSID Specifications
transport package
Version 3.0.0
Release Candidate Preview
Interfaceosid.transport.DataOutputStream
Description

The data output stream provides a means in which data can be written to a stream.

Methodwrite
Description

Writes n bytes to this stream.

Parametersbyte[]bufthe buffer containing the data to write
cardinalnthe number of bytes to write
ErrorsILLEGAL_STATEthis stream has been closed
INVALID_ARGUMENT buf does not contain n bytes
NULL_ARGUMENT buf is null
OPERATION_FAILEDunable to complete request
CompliancemandatoryThis method must be implemented.
MethodwriteStream
Description

Writes a stream to this stream.

Parametersosid.transport.DataInputStreamstreaman input stream
ErrorsILLEGAL_STATEthis stream has been closed
NULL_ARGUMENT stream is null
OPERATION_FAILEDunable to complete request
CompliancemandatoryThis method must be implemented.
Methodclose
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.

ErrorsILLEGAL_STATEthis stream has been closed
CompliancemandatoryThis method must be implemented.