edu.toronto.cs.util
Class MarshaledOutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by edu.toronto.cs.util.MarshaledOutputStream
All Implemented Interfaces:
java.io.Closeable, java.io.DataOutput, java.io.Flushable

public class MarshaledOutputStream
extends java.io.OutputStream
implements java.io.DataOutput


Constructor Summary
MarshaledOutputStream(java.io.OutputStream _out)
           
 
Method Summary
 void close()
           
 void flush()
          OutputStream methods
 void write(byte[] data)
           
 void write(byte[] data, int off, int len)
           
 void write(int b)
           
 void writeBoolean(boolean b)
           
 void writeByte(int b)
           
 void writeByteArray(byte[] data)
           
 void writeBytes(java.lang.String s)
           
 void writeChar(int v)
           
 void writeCharArrayFixed(char[] data)
           
 void writeChars(java.lang.String s)
           
 void writeDouble(double param1)
           
 void writeFloat(float param1)
           
 void writeInt(int v)
           
 void writeIntArray(int[] data)
           
 void writeIntArrayFixed(int[] data)
           
 void writeLong(long v)
           
 void writeShort(int v)
           
 void writeString(java.lang.String s)
           
 void writeUTF(java.lang.String param1)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MarshaledOutputStream

public MarshaledOutputStream(java.io.OutputStream _out)
Method Detail

writeInt

public void writeInt(int v)
              throws java.io.IOException
Specified by:
writeInt in interface java.io.DataOutput
Parameters:
param1 -
Throws:
java.io.IOException -

writeUTF

public void writeUTF(java.lang.String param1)
              throws java.io.IOException
Specified by:
writeUTF in interface java.io.DataOutput
Parameters:
param1 -
Throws:
java.io.IOException -

writeByte

public void writeByte(int b)
               throws java.io.IOException
Specified by:
writeByte in interface java.io.DataOutput
Parameters:
param1 -
Throws:
java.io.IOException -

writeShort

public void writeShort(int v)
                throws java.io.IOException
Specified by:
writeShort in interface java.io.DataOutput
Parameters:
param1 -
Throws:
java.io.IOException -

writeString

public void writeString(java.lang.String s)
                 throws java.io.IOException
Throws:
java.io.IOException

writeBytes

public void writeBytes(java.lang.String s)
                throws java.io.IOException
Specified by:
writeBytes in interface java.io.DataOutput
Parameters:
param1 -
Throws:
java.io.IOException -

writeChar

public void writeChar(int v)
               throws java.io.IOException
Specified by:
writeChar in interface java.io.DataOutput
Parameters:
param1 -
Throws:
java.io.IOException -

writeFloat

public void writeFloat(float param1)
                throws java.io.IOException
Specified by:
writeFloat in interface java.io.DataOutput
Parameters:
param1 -
Throws:
java.io.IOException -

writeBoolean

public void writeBoolean(boolean b)
                  throws java.io.IOException
Specified by:
writeBoolean in interface java.io.DataOutput
Parameters:
param1 -
Throws:
java.io.IOException -

writeLong

public void writeLong(long v)
               throws java.io.IOException
Specified by:
writeLong in interface java.io.DataOutput
Parameters:
param1 -
Throws:
java.io.IOException -

writeDouble

public void writeDouble(double param1)
                 throws java.io.IOException
Specified by:
writeDouble in interface java.io.DataOutput
Parameters:
param1 -
Throws:
java.io.IOException -

writeChars

public void writeChars(java.lang.String s)
                throws java.io.IOException
Specified by:
writeChars in interface java.io.DataOutput
Parameters:
param1 -
Throws:
java.io.IOException -

writeByteArray

public void writeByteArray(byte[] data)
                    throws java.io.IOException
Throws:
java.io.IOException

writeIntArray

public void writeIntArray(int[] data)
                   throws java.io.IOException
Throws:
java.io.IOException

writeIntArrayFixed

public void writeIntArrayFixed(int[] data)
                        throws java.io.IOException
Throws:
java.io.IOException

writeCharArrayFixed

public void writeCharArrayFixed(char[] data)
                         throws java.io.IOException
Throws:
java.io.IOException

flush

public void flush()
           throws java.io.IOException
OutputStream methods

Specified by:
flush in interface java.io.Flushable
Overrides:
flush in class java.io.OutputStream
Throws:
java.io.IOException

close

public void close()
           throws java.io.IOException
Specified by:
close in interface java.io.Closeable
Overrides:
close in class java.io.OutputStream
Throws:
java.io.IOException

write

public void write(int b)
           throws java.io.IOException
Specified by:
write in interface java.io.DataOutput
Specified by:
write in class java.io.OutputStream
Throws:
java.io.IOException

write

public void write(byte[] data)
           throws java.io.IOException
Specified by:
write in interface java.io.DataOutput
Overrides:
write in class java.io.OutputStream
Throws:
java.io.IOException

write

public void write(byte[] data,
                  int off,
                  int len)
           throws java.io.IOException
Specified by:
write in interface java.io.DataOutput
Overrides:
write in class java.io.OutputStream
Throws:
java.io.IOException