org.axiondb.util
Class DataOutputOutputStream

java.lang.Object
  extended byjava.io.OutputStream
      extended byorg.axiondb.util.DataOutputOutputStream
All Implemented Interfaces:
DataOutput

public class DataOutputOutputStream
extends OutputStream
implements DataOutput

An OutputStream wrapping a DataOutput stream.

Version:
$Revision: 1.3 $ $Date: 2002/12/16 23:34:55 $

Constructor Summary
DataOutputOutputStream(DataOutput out)
          Create an OutputStream wrapping the given DataOutput.
 
Method Summary
 void close()
          Close me and free any associated resources.
 void flush()
          Flush any buffered bytes.
 void write(byte[] b)
          Write the given byte array.
 void write(byte[] b, int off, int len)
          Write the specified sub-array of the given byte array.
 void write(int b)
          Write the given byte.
 void writeBoolean(boolean v)
          Write the given value.
 void writeByte(int v)
          Write the given value.
 void writeBytes(String s)
          Write the given value.
 void writeChar(int v)
          Write the given value.
 void writeChars(String s)
          Write the given value.
 void writeDouble(double v)
          Write the given value.
 void writeFloat(float v)
          Write the given value.
 void writeInt(int v)
          Write the given value.
 void writeLong(long v)
          Write the given value.
 void writeShort(int v)
          Write the given value.
 void writeUTF(String str)
          Write the given value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataOutputOutputStream

public DataOutputOutputStream(DataOutput out)
Create an OutputStream wrapping the given DataOutput.

Method Detail

close

public void close()
           throws IOException
Close me and free any associated resources.

Throws:
IOException

write

public void write(int b)
           throws IOException
Write the given byte.

Specified by:
write in interface DataOutput
Throws:
IOException
See Also:
DataOutput.write(int)

write

public void write(byte[] b)
           throws IOException
Write the given byte array.

Specified by:
write in interface DataOutput
Throws:
IOException
See Also:
DataOutput.write(byte[])

write

public void write(byte[] b,
                  int off,
                  int len)
           throws IOException
Write the specified sub-array of the given byte array.

Specified by:
write in interface DataOutput
Throws:
IOException
See Also:
DataOutput.write(byte[],int,int)

flush

public void flush()
           throws IOException
Flush any buffered bytes.

Throws:
IOException

writeBoolean

public void writeBoolean(boolean v)
                  throws IOException
Write the given value.

Specified by:
writeBoolean in interface DataOutput
Throws:
IOException
See Also:
DataOutput.writeBoolean(boolean)

writeByte

public void writeByte(int v)
               throws IOException
Write the given value.

Specified by:
writeByte in interface DataOutput
Throws:
IOException
See Also:
DataOutput.writeByte(int)

writeBytes

public void writeBytes(String s)
                throws IOException
Write the given value.

Specified by:
writeBytes in interface DataOutput
Throws:
IOException
See Also:
DataOutput.writeBytes(java.lang.String)

writeChar

public void writeChar(int v)
               throws IOException
Write the given value.

Specified by:
writeChar in interface DataOutput
Throws:
IOException
See Also:
DataOutput.writeChar(int)

writeChars

public void writeChars(String s)
                throws IOException
Write the given value.

Specified by:
writeChars in interface DataOutput
Throws:
IOException
See Also:
DataOutput.writeChars(java.lang.String)

writeDouble

public void writeDouble(double v)
                 throws IOException
Write the given value.

Specified by:
writeDouble in interface DataOutput
Throws:
IOException
See Also:
DataOutput.writeDouble(double)

writeFloat

public void writeFloat(float v)
                throws IOException
Write the given value.

Specified by:
writeFloat in interface DataOutput
Throws:
IOException
See Also:
DataOutput.writeFloat(float)

writeInt

public void writeInt(int v)
              throws IOException
Write the given value.

Specified by:
writeInt in interface DataOutput
Throws:
IOException
See Also:
DataOutput.writeInt(int)

writeLong

public void writeLong(long v)
               throws IOException
Write the given value.

Specified by:
writeLong in interface DataOutput
Throws:
IOException
See Also:
DataOutput.writeLong(long)

writeShort

public void writeShort(int v)
                throws IOException
Write the given value.

Specified by:
writeShort in interface DataOutput
Throws:
IOException
See Also:
DataOutput.writeShort(int)

writeUTF

public void writeUTF(String str)
              throws IOException
Write the given value.

Specified by:
writeUTF in interface DataOutput
Throws:
IOException
See Also:
DataOutput.writeUTF(java.lang.String)