org.nakedobjects.metamodel.commons.encoding
Class DataOutputExtendedDecorator

java.lang.Object
  extended by org.nakedobjects.metamodel.commons.encoding.DataOutputExtendedDecorator
All Implemented Interfaces:
java.io.DataOutput, java.io.Flushable, DataOutputExtended
Direct Known Subclasses:
DebugDataOutputExtended

public class DataOutputExtendedDecorator
extends java.lang.Object
implements DataOutputExtended


Constructor Summary
DataOutputExtendedDecorator(DataOutputExtended underlying)
           
 
Method Summary
 void flush()
           
 java.io.DataOutputStream getDataOutputStream()
           
 void write(byte[] b)
           
 void write(byte[] b, int off, int len)
           
 void write(int b)
          NB: only writes out byte.
 void writeBoolean(boolean v)
           
 void writeBooleans(boolean[] booleans)
           
 void writeByte(int v)
          Same as DataOutputExtended.write(int).
 void writeBytes(byte[] bytes)
           
 void writeBytes(java.lang.String s)
           
 void writeChar(int v)
           
 void writeChars(char[] chars)
           
 void writeChars(java.lang.String s)
           
 void writeDouble(double v)
           
 void writeDoubles(double[] doubles)
           
 void writeEncodable(java.lang.Object encodable)
           
 void writeEncodables(java.lang.Object[] encodables)
           
 void writeFloat(float v)
           
 void writeFloats(float[] floats)
           
 void writeInt(int v)
           
 void writeInts(int[] ints)
           
 void writeLong(long v)
           
 void writeLongs(long[] longs)
           
 void writeSerializable(java.lang.Object serializable)
           
 void writeSerializables(java.lang.Object[] serializables)
           
 void writeShort(int v)
           
 void writeShorts(short[] shorts)
           
 void writeUTF(java.lang.String str)
           
 void writeUTFs(java.lang.String[] strings)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataOutputExtendedDecorator

public DataOutputExtendedDecorator(DataOutputExtended underlying)
Method Detail

getDataOutputStream

public java.io.DataOutputStream getDataOutputStream()
Specified by:
getDataOutputStream in interface DataOutputExtended

writeBoolean

public void writeBoolean(boolean v)
                  throws java.io.IOException
Specified by:
writeBoolean in interface java.io.DataOutput
Throws:
java.io.IOException

writeBooleans

public void writeBooleans(boolean[] booleans)
                   throws java.io.IOException
Specified by:
writeBooleans in interface DataOutputExtended
Throws:
java.io.IOException

writeChar

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

writeChars

public void writeChars(char[] chars)
                throws java.io.IOException
Specified by:
writeChars in interface DataOutputExtended
Throws:
java.io.IOException

write

public void write(int b)
           throws java.io.IOException
Description copied from interface: DataOutputExtended
NB: only writes out byte.

Specified by:
write in interface java.io.DataOutput
Specified by:
write in interface DataOutputExtended
Throws:
java.io.IOException

writeByte

public void writeByte(int v)
               throws java.io.IOException
Description copied from interface: DataOutputExtended
Same as DataOutputExtended.write(int).

Specified by:
writeByte in interface java.io.DataOutput
Specified by:
writeByte in interface DataOutputExtended
Throws:
java.io.IOException

write

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

writeBytes

public void writeBytes(byte[] bytes)
                throws java.io.IOException
Specified by:
writeBytes in interface DataOutputExtended
Throws:
java.io.IOException

writeShort

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

writeShorts

public void writeShorts(short[] shorts)
                 throws java.io.IOException
Specified by:
writeShorts in interface DataOutputExtended
Throws:
java.io.IOException

writeInt

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

writeInts

public void writeInts(int[] ints)
               throws java.io.IOException
Specified by:
writeInts in interface DataOutputExtended
Throws:
java.io.IOException

writeLong

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

writeLongs

public void writeLongs(long[] longs)
                throws java.io.IOException
Specified by:
writeLongs in interface DataOutputExtended
Throws:
java.io.IOException

writeFloat

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

writeFloats

public void writeFloats(float[] floats)
                 throws java.io.IOException
Specified by:
writeFloats in interface DataOutputExtended
Throws:
java.io.IOException

writeDouble

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

writeDoubles

public void writeDoubles(double[] doubles)
                  throws java.io.IOException
Specified by:
writeDoubles in interface DataOutputExtended
Throws:
java.io.IOException

writeUTF

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

writeUTFs

public void writeUTFs(java.lang.String[] strings)
               throws java.io.IOException
Specified by:
writeUTFs in interface DataOutputExtended
Throws:
java.io.IOException

writeEncodable

public void writeEncodable(java.lang.Object encodable)
                    throws java.io.IOException
Specified by:
writeEncodable in interface DataOutputExtended
Throws:
java.io.IOException

writeEncodables

public void writeEncodables(java.lang.Object[] encodables)
                     throws java.io.IOException
Specified by:
writeEncodables in interface DataOutputExtended
Throws:
java.io.IOException

writeSerializable

public void writeSerializable(java.lang.Object serializable)
                       throws java.io.IOException
Specified by:
writeSerializable in interface DataOutputExtended
Throws:
java.io.IOException

writeSerializables

public void writeSerializables(java.lang.Object[] serializables)
                        throws java.io.IOException
Specified by:
writeSerializables in interface DataOutputExtended
Throws:
java.io.IOException

write

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

writeBytes

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

writeChars

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

flush

public void flush()
           throws java.io.IOException
Specified by:
flush in interface java.io.Flushable
Throws:
java.io.IOException


Copyright © 2001-2009 Naked Objects Group Ltd.. All Rights Reserved.