public final class ExtendedIOUtil extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ExtendedIOUtil.ClassLoaderClassResolver |
static interface |
ExtendedIOUtil.ClassResolver |
public static void writeByteArray(DataOutput out, byte[] b) throws IOException
IOException
public static byte[] readByteArray(DataInput in) throws IOException
IOException
public static void writeObject(DataOutput out, Object object) throws IOException
IOException
public static Object readObject(DataInput in) throws IOException
IOException
public static Object readObject(DataInput in, ClassLoader classLoader) throws IOException
IOException
public static Object readObject(DataInput in, ExtendedIOUtil.ClassResolver classResolver) throws IOException
IOException
public static void writeString(DataOutput out, String str) throws IOException
IOException
public static String readString(DataInput in) throws IOException
IOException
public static long writeBinaryStream(DataOutput out, InputStream inputStream) throws IOException
IOException
public static long readBinaryStream(DataInput in, OutputStream outputStream) throws IOException
IOException
public static long writeCharacterStream(DataOutput out, Reader reader) throws IOException
IOException
public static long readCharacterStream(DataInput in, Writer writer) throws IOException
IOException
public static void writeEnum(DataOutput out, Enum<?> literal) throws IOException
IOException
public static <T extends Enum<?>> T readEnum(DataInput in, Class<T> type) throws IOException
IOException
public static void writeException(DataOutput out, Throwable t) throws IOException
IOException
public static Throwable readException(DataInput in) throws IOException
IOException
public static byte[] serializeThrowable(Throwable t)
public static Throwable deserializeThrowable(byte[] bytes)
Copyright (c) 2014 Eike Stepper (Berlin, Germany) and others.
All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html