org.eclipse.net4j.util.io
Class ExtendedDataOutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by java.io.FilterOutputStream
          extended by java.io.DataOutputStream
              extended by org.eclipse.net4j.util.io.ExtendedDataOutputStream
All Implemented Interfaces:
Closeable, DataOutput, Flushable, ExtendedDataOutput

public class ExtendedDataOutputStream
extends DataOutputStream
implements ExtendedDataOutput


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.eclipse.net4j.util.io.ExtendedDataOutput
ExtendedDataOutput.Delegating, ExtendedDataOutput.Stream
 
Field Summary
 
Fields inherited from class java.io.DataOutputStream
written
 
Fields inherited from class java.io.FilterOutputStream
out
 
Constructor Summary
ExtendedDataOutputStream(OutputStream out)
           
 
Method Summary
static OutputStream unwrap(OutputStream stream)
           
static ExtendedDataOutputStream wrap(OutputStream stream)
           
 void writeByteArray(byte[] b)
           
 void writeEnum(Enum<?> literal)
           
 void writeObject(Object object)
           
 void writeString(String str)
           
 
Methods inherited from class java.io.DataOutputStream
flush, size, write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTF
 
Methods inherited from class java.io.FilterOutputStream
close, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.io.DataOutput
write, write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTF
 

Constructor Detail

ExtendedDataOutputStream

public ExtendedDataOutputStream(OutputStream out)
Method Detail

writeByteArray

public void writeByteArray(byte[] b)
                    throws IOException
Specified by:
writeByteArray in interface ExtendedDataOutput
Throws:
IOException

writeString

public void writeString(String str)
                 throws IOException
Specified by:
writeString in interface ExtendedDataOutput
Throws:
IOException

writeEnum

public void writeEnum(Enum<?> literal)
               throws IOException
Specified by:
writeEnum in interface ExtendedDataOutput
Throws:
IOException
Since:
3.0

writeObject

public void writeObject(Object object)
                 throws IOException
Specified by:
writeObject in interface ExtendedDataOutput
Throws:
IOException

wrap

public static ExtendedDataOutputStream wrap(OutputStream stream)

unwrap

public static OutputStream unwrap(OutputStream stream)


Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.