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 byte[] readByteArray(DataInput in)
           
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 void writeByteArray(DataOutput out, byte[] b)
           
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

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) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.