Package org.eclipse.net4j.util.io
Class ExtendedIOUtil
java.lang.Object
org.eclipse.net4j.util.io.ExtendedIOUtil
- Author:
- Eike Stepper
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic interface -
Method Summary
Modifier and TypeMethodDescriptionstatic ThrowabledeserializeThrowable(byte[] bytes) static longreadBinaryStream(DataInput in, OutputStream outputStream) static byte[]static longreadCharacterStream(DataInput in, Writer writer) static <T extends Enum<?>>
Tstatic Throwablestatic ObjectreadObject(DataInput in) static ObjectreadObject(DataInput in, ClassLoader classLoader) static ObjectreadObject(DataInput in, ExtendedIOUtil.ClassResolver classResolver) static StringreadString(DataInput in) static intreadVarInt(DataInput in) static longreadVarLong(DataInput in) static byte[]static longwriteBinaryStream(DataOutput out, InputStream inputStream) static voidwriteByteArray(DataOutput out, byte[] b) static longwriteCharacterStream(DataOutput out, Reader reader) static voidwriteEnum(DataOutput out, Enum<?> literal) static voidwriteException(DataOutput out, Throwable t) static voidwriteObject(DataOutput out, Object object) static voidwriteProperties(DataOutput out, Map<String, String> properties) static voidwriteString(DataOutput out, String str) static voidwriteVarInt(DataOutput out, int v) static voidwriteVarLong(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
-