All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object
|
   +----java.io.OutputStream
|
           +----java.io.FilterOutputStream
|
                   +----java.io.DataOutputStream
 
  written
 written  
  DataOutputStream(OutputStream)
 DataOutputStream(OutputStream)  
  flush()
 flush()  size()
 size()  write(byte[], int, int)
 write(byte[], int, int) len bytes from the specified byte array starting at offset off to the underlying output stream.  write(int)
 write(int)  writeBoolean(boolean)
 writeBoolean(boolean) boolean to the underlying output stream as a 1-byte value.  writeByte(int)
 writeByte(int) byte to the underlying output stream as a 1-byte value.  writeBytes(String)
 writeBytes(String)  writeChar(int)
 writeChar(int) char to the underlying output stream as a 2-byte value, high byte first.  writeChars(String)
 writeChars(String)  writeDouble(double)
 writeDouble(double) long using the doubleToLongBits method in class Double, and then writes that long value to the underlying output stream as an 8-byte quantity, high byte first.  writeFloat(float)
 writeFloat(float) int using the floatToIntBits method in class Float, and then writes that int value to the underlying output stream as a 4-byte quantity, high byte first.  writeInt(int)
 writeInt(int) int to the underlying output stream as four bytes, high byte first.  writeLong(long)
 writeLong(long) long to the underlying output stream as eight bytes, high byte first.  writeShort(int)
 writeShort(int) short to the underlying output stream as two bytes, high byte first.  writeUTF(String)
 writeUTF(String)  
  written
 written 
protected int written
 
  DataOutputStream
 DataOutputStream 
public DataOutputStream(OutputStream out)
 
  write
 write 
public synchronized void write(int b) throws IOException
byte to be written.  write
 write 
public synchronized void write(byte b[],
                                int off,
                                int len) throws IOException
len bytes from the specified byte array starting at offset off to the underlying output stream.  flush
 flush 
public void flush() throws IOException
The flush method of DataOuputStream calls the flush method of its underlying output stream. 
 writeBoolean
 writeBoolean 
public final void writeBoolean(boolean v) throws IOException
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. boolean value to be written.  writeByte
 writeByte 
public final void writeByte(int v) throws IOException
byte to the underlying output stream as a 1-byte value. byte value to be written.  writeShort
 writeShort 
public final void writeShort(int v) throws IOException
short to the underlying output stream as two bytes, high byte first. short to be written.  writeChar
 writeChar 
public final void writeChar(int v) throws IOException
char to the underlying output stream as a 2-byte value, high byte first. char value to be written.  writeInt
 writeInt 
public final void writeInt(int v) throws IOException
int to the underlying output stream as four bytes, high byte first. int to be written.  writeLong
 writeLong 
public final void writeLong(long v) throws IOException
long to the underlying output stream as eight bytes, high byte first. long to be written.  writeFloat
 writeFloat 
public final void writeFloat(float v) throws IOException
int using the floatToIntBits method in class Float, and then writes that int value to the underlying output stream as a 4-byte quantity, high byte first. float value to be written.  writeDouble
 writeDouble 
public final void writeDouble(double v) throws IOException
long using the doubleToLongBits method in class Double, and then writes that long value to the underlying output stream as an 8-byte quantity, high byte first. double value to be written.  writeBytes
 writeBytes 
public final void writeBytes(String s) throws IOException
 writeChars
 writeChars 
public final void writeChars(String s) throws IOException
writeChar method. String value to be written.  writeUTF
 writeUTF 
public final void writeUTF(String str) throws IOException
First, two bytes are written to the output stream as if by the writeShort method giving the number of bytes to follow. This value is the number of bytes actually written out, not the length of the string. Following the length, each character of the string is output, in sequence, using the UTF-8 encoding for the character. 
 size
 size 
public final int size()
written field. All Packages Class Hierarchy This Package Previous Next Index