org.eclipse.net4j.util.io
Class ExtendedIOUtil

java.lang.Object
  extended by org.eclipse.net4j.util.io.ExtendedIOUtil

public final class ExtendedIOUtil
extends Object


Nested Class Summary
static class ExtendedIOUtil.ClassLoaderClassResolver
           
static interface ExtendedIOUtil.ClassResolver
           
 
Method Summary
static long readBinaryStream(DataInput in, OutputStream outputStream)
           
static byte[] readByteArray(DataInput in)
           
static long readCharacterStream(DataInput in, Writer writer)
           
static
<T extends Enum<?>>
T
readEnum(DataInput in, Class<T> type)
           
static Object readObject(DataInput in)
           
static Object readObject(DataInput in, ClassLoader classLoader)
           
static Object readObject(DataInput in, ExtendedIOUtil.ClassResolver classResolver)
           
static String readString(DataInput in)
           
static long writeBinaryStream(DataOutput out, InputStream inputStream)
           
static void writeByteArray(DataOutput out, byte[] b)
           
static long writeCharacterStream(DataOutput out, Reader reader)
           
static void writeEnum(DataOutput out, Enum<?> literal)
           
static void writeObject(DataOutput out, Object object)
           
static void writeString(DataOutput out, String str)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

writeByteArray

public static void writeByteArray(DataOutput out,
                                  byte[] b)
                           throws IOException
Throws:
IOException

readByteArray

public static byte[] readByteArray(DataInput in)
                            throws IOException
Throws:
IOException

writeObject

public static void writeObject(DataOutput out,
                               Object object)
                        throws IOException
Throws:
IOException

readObject

public static Object readObject(DataInput in)
                         throws IOException
Throws:
IOException

readObject

public static Object readObject(DataInput in,
                                ClassLoader classLoader)
                         throws IOException
Throws:
IOException

readObject

public static Object readObject(DataInput in,
                                ExtendedIOUtil.ClassResolver classResolver)
                         throws IOException
Throws:
IOException

writeString

public static void writeString(DataOutput out,
                               String str)
                        throws IOException
Throws:
IOException

readString

public static String readString(DataInput in)
                         throws IOException
Throws:
IOException

writeBinaryStream

public static long writeBinaryStream(DataOutput out,
                                     InputStream inputStream)
                              throws IOException
Throws:
IOException
Since:
3.3

readBinaryStream

public static long readBinaryStream(DataInput in,
                                    OutputStream outputStream)
                             throws IOException
Throws:
IOException
Since:
3.3

writeCharacterStream

public static long writeCharacterStream(DataOutput out,
                                        Reader reader)
                                 throws IOException
Throws:
IOException
Since:
3.3

readCharacterStream

public static long readCharacterStream(DataInput in,
                                       Writer writer)
                                throws IOException
Throws:
IOException
Since:
3.3

writeEnum

public static void writeEnum(DataOutput out,
                             Enum<?> literal)
                      throws IOException
Throws:
IOException
Since:
3.0

readEnum

public static <T extends Enum<?>> T readEnum(DataInput in,
                                             Class<T> type)
                                  throws IOException
Throws:
IOException
Since:
3.0


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