org.eclipse.net4j.util.io
Class ExtendedDataInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by java.io.FilterInputStream
          extended by java.io.DataInputStream
              extended by org.eclipse.net4j.util.io.ExtendedDataInputStream
All Implemented Interfaces:
Closeable, DataInput, ExtendedDataInput

public class ExtendedDataInputStream
extends DataInputStream
implements ExtendedDataInput


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.eclipse.net4j.util.io.ExtendedDataInput
ExtendedDataInput.Delegating, ExtendedDataInput.Stream
 
Field Summary
 
Fields inherited from class java.io.FilterInputStream
in
 
Constructor Summary
ExtendedDataInputStream(InputStream in)
           
 
Method Summary
 byte[] readByteArray()
           
<T extends Enum<?>>
T
readEnum(Class<T> type)
           
 Object readObject()
           
 Object readObject(ClassLoader classLoader)
           
 Object readObject(ExtendedIOUtil.ClassResolver classResolver)
           
 String readString()
           
static InputStream unwrap(InputStream stream)
           
static ExtendedDataInputStream wrap(InputStream stream)
           
 
Methods inherited from class java.io.DataInputStream
read, read, readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, readUTF, skipBytes
 
Methods inherited from class java.io.FilterInputStream
available, close, mark, markSupported, read, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.io.DataInput
readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, skipBytes
 

Constructor Detail

ExtendedDataInputStream

public ExtendedDataInputStream(InputStream in)
Method Detail

readByteArray

public byte[] readByteArray()
                     throws IOException
Specified by:
readByteArray in interface ExtendedDataInput
Throws:
IOException

readString

public String readString()
                  throws IOException
Specified by:
readString in interface ExtendedDataInput
Throws:
IOException

readObject

public Object readObject()
                  throws IOException
Specified by:
readObject in interface ExtendedDataInput
Throws:
IOException

readEnum

public <T extends Enum<?>> T readEnum(Class<T> type)
                           throws IOException
Specified by:
readEnum in interface ExtendedDataInput
Throws:
IOException
Since:
3.0

readObject

public Object readObject(ClassLoader classLoader)
                  throws IOException
Specified by:
readObject in interface ExtendedDataInput
Throws:
IOException

readObject

public Object readObject(ExtendedIOUtil.ClassResolver classResolver)
                  throws IOException
Specified by:
readObject in interface ExtendedDataInput
Throws:
IOException

wrap

public static ExtendedDataInputStream wrap(InputStream stream)

unwrap

public static InputStream unwrap(InputStream stream)


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