Sunday, 10 March 2013

Fields


Fields

out
Declaration:
protected java.io.OutputStream out
Description:
The output stream.
Constructors
DataOutputStream(OutputStream)
Declaration:
public DataOutputStream(java.io.OutputStream out)
Description:
Creates a new data output stream to write data to the specified underlying output stream.
Parameters:
out - the underlying output stream, to be saved for later use.
Methods
write(int)
Declaration:
public void write(int b)
throws IOException
Description:
Writes the specified byte (the low eight bits of the argument b) to the underlying output stream.
Implements the write method of OutputStream.
Specified By: write in interface DataOutput
Overrides: write in class OutputStream

Parameters:
b - the byte to be written.
Throws:
IOException - if an I/O error occurs.
write(byte[], int, int)
Declaration:
public void write(byte[] b, int off, int len)
throws IOException
Description:
Writes len bytes from the specified byte array starting at offset off to the underlying output stream.
Specified By: write in interface DataOutput
Overrides: write in class OutputStream
Parameters:
b - the data.
off - the start offset in the data.
len - the number of bytes to write.
Throws:
IOException - if an I/O error occurs.
flush()
Declaration:
public void flush()
throws IOException
Description:
Flushes this data output stream. This forces any buffered output bytes to be written out to the stream.
The flush method of DataOutputStream calls the flush method of its underlying output stream.
Overrides: flush in class OutputStream
Throws:
IOException - if an I/O error occurs.
close()
Declaration:
public void close()
throws IOException
Description:
Closes this output stream and releases any system resources associated with the stream.
The close method calls its flush method, and then calls the close method of its underlying output
stream.
Overrides: close in class OutputStream
Throws:
IOException - if an I/O error occurs.

writeBoolean(boolean)
Declaration:
public final void writeBoolean(boolean v)
throws IOException
Description:
Writes a boolean to the underlying output stream as a 1-byte value. The value true is written out as the
value (byte)1; the value false is written out as the value (byte)0.
Specified By: writeBoolean in interface DataOutput
Parameters:
v - a boolean value to be written.
Throws:
IOException - if an I/O error occurs.
writeByte(int)
Declaration:
public final void writeByte(int v)
throws IOException
Description:
Writes out a byte to the underlying output stream as a 1-byte value.
Specified By: writeByte in interface DataOutput
Parameters:
v - a byte value to be written.
Throws:
IOException - if an I/O error occurs.
writeShort(int)
Declaration:
public final void writeShort(int v)
throws IOException
Description:
Writes a short to the underlying output stream as two bytes, high byte first.
Specified By: writeShort in interface DataOutput
Parameters:
v - a short to be written.
Throws:
IOException - if an I/O error occurs.
writeChar(int)
Declaration:
public final void writeChar(int v)
throws IOException
Description:
Writes a char to the underlying output stream as a 2-byte value, high byte first.

Specified By: writeChar in interface DataOutput
Parameters:
v - a char value to be written.
Throws:
IOException - if an I/O error occurs.



No comments:

Post a Comment