OSID Logo
OSID Specifications
transport package
Version 3.1.0
Interfaceosid.transport.DataOutputStream
Used Byosid.filing.FileContentSession
osid.transport.OutboundStreamSession
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[]buf the buffer containing the data to write
cardinaln the number of bytes to write
ErrorsILLEGAL_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
Compliancemandatory This method must be implemented.
MethodwriteStream
Description

Writes a stream to this stream.

Parametersosid.transport.DataInputStreamstream an input stream
ErrorsILLEGAL_STATE this stream has been closed
NULL_ARGUMENT stream is null
OPERATION_FAILED unable to complete request
Compliancemandatory This 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_STATE this stream has been closed
Compliancemandatory This method must be implemented.