public abstract class SerialFactory extends Object
Constructor and Description |
---|
SerialFactory() |
Modifier and Type | Method and Description |
---|---|
protected abstract ObjectInputStream |
getObjectInputStream(InputStream inputStream) |
protected abstract ObjectOutputStream |
getObjectOutputStream(OutputStream outputStream) |
byte[] |
toByteArray(Object object) |
Object |
toObject(byte[] bytes) |
public byte[] toByteArray(Object object) throws IOException
IOException
public Object toObject(byte[] bytes) throws IOException, PrivilegedActionException, ClassNotFoundException
protected abstract ObjectOutputStream getObjectOutputStream(OutputStream outputStream) throws IOException
IOException
protected abstract ObjectInputStream getObjectInputStream(InputStream inputStream) throws IOException
IOException
Copyright © 2022 The Apache Software Foundation. All rights reserved.