Package org.eclipse.net4j.util.io
Class ExtendedIOUtil
java.lang.Object
org.eclipse.net4j.util.io.ExtendedIOUtil
- Author:
- Eike Stepper
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static interface
-
Method Summary
Modifier and TypeMethodDescriptionstatic Throwable
deserializeThrowable
(byte[] bytes) static long
readBinaryStream
(DataInput in, OutputStream outputStream) static byte[]
static long
readCharacterStream
(DataInput in, Writer writer) static <T extends Enum<?>>
Tstatic Throwable
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 int
readVarInt
(DataInput in) static long
readVarLong
(DataInput in) static byte[]
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
writeException
(DataOutput out, Throwable t) static void
writeObject
(DataOutput out, Object object) static void
writeProperties
(DataOutput out, Map<String, String> properties) static void
writeString
(DataOutput out, String str) static void
writeVarInt
(DataOutput out, int v) static void
writeVarLong
(DataOutput out, long v)
-
Method Details
-
writeVarInt
- Throws:
IOException
- Since:
- 3.7
-
readVarInt
- Throws:
IOException
- Since:
- 3.7
-
writeVarLong
- Throws:
IOException
- Since:
- 3.7
-
readVarLong
- Throws:
IOException
- Since:
- 3.7
-
writeByteArray
- Throws:
IOException
-
readByteArray
- Throws:
IOException
-
writeObject
- Throws:
IOException
-
readObject
- Throws:
IOException
-
readObject
- Throws:
IOException
-
readObject
public static Object readObject(DataInput in, ExtendedIOUtil.ClassResolver classResolver) throws IOException - Throws:
IOException
-
writeString
- Throws:
IOException
-
readString
- Throws:
IOException
-
writeBinaryStream
- Throws:
IOException
- Since:
- 3.3
-
readBinaryStream
- Throws:
IOException
- Since:
- 3.3
-
writeCharacterStream
- Throws:
IOException
- Since:
- 3.3
-
readCharacterStream
- Throws:
IOException
- Since:
- 3.3
-
writeEnum
- Throws:
IOException
- Since:
- 3.0
-
readEnum
- Throws:
IOException
- Since:
- 3.0
-
writeProperties
public static void writeProperties(DataOutput out, Map<String, String> properties) throws IOException- Throws:
IOException
- Since:
- 3.25
-
readProperties
- Throws:
IOException
- Since:
- 3.25
-
writeException
- Throws:
IOException
- Since:
- 3.4
-
readException
- Throws:
IOException
- Since:
- 3.4
-
serializeThrowable
- Since:
- 3.4
-
deserializeThrowable
- Since:
- 3.4
-