java::io::DataOutputStream Class Reference

Inheritance diagram for java::io::DataOutputStream:

Inheritance graph
java::io::FilterOutputStreamjava::lang::Objectjava::lang::Interfacejava::io::OutputStreamjava::io::DataOutput
[legend]
Collaboration diagram for java::io::DataOutputStream:

Collaboration graph
java::io::FilterOutputStreamjava::lang::Objectjava::lang::Interfacejava::io::OutputStreamjava::io::DataOutput
[legend]

List of all members.


Detailed Description

A data input stream lets an application write primitive Java data types to an output stream in a portable way.

An application can then use a data input stream to read the data back in.

Author:
unascribed
Version:
1.32, 02/02/00
See also:
java.io.DataInputStream
Since:
JDK1.0

Public Member Functions

 DataOutputStream (const Ref< OutputStream > &out=0)
 Creates a new data output stream to write data to the specified underlying output stream.
virtual void write (jint b)
 Writes the specified byte (the low eight bits of the argument b) to the underlying output stream.
virtual void write (const Array< jbyte > &b, jint ofs=0, jint len=-1)
 Writes len bytes from the specified byte array starting at offset off to the underlying output stream.

Constructor & Destructor Documentation

java::io::DataOutputStream::DataOutputStream ( const Ref< OutputStream > &  out = 0  ) 

Creates a new data output stream to write data to the specified underlying output stream.

The counter written is set to zero.

Parameters:
out the underlying output stream, to be saved for later use.
See also:
java.io.FilterOutputStream::out


Member Function Documentation

virtual void java::io::DataOutputStream::write ( jint  b  )  [virtual]

Writes the specified byte (the low eight bits of the argument b) to the underlying output stream.

If no exception is thrown, the counter written is incremented by 1.

Implements the write method of OutputStream.

Parameters:
b the byte to be written.
Exceptions:
IOException if an I/O error occurs.

Implements java::io::DataOutput.

virtual void java::io::DataOutputStream::write ( const Array< jbyte > &  b,
jint  ofs = 0,
jint  len = -1 
) [virtual]

Writes 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.

Parameters:
b the data.
off the start offset in the data.
len the number of bytes to write.
Exceptions:
IOException if an I/O error occurs.

Implements java::io::DataOutput.


The documentation for this class was generated from the following file:
Generated on Fri May 16 11:56:29 2008 for CrossPlatformJavaLikeC++API by  doxygen 1.5.3