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
IOExceptionpublic Object toObject(byte[] bytes) throws IOException, PrivilegedActionException, ClassNotFoundException
protected abstract ObjectOutputStream getObjectOutputStream(OutputStream outputStream) throws IOException
IOExceptionprotected abstract ObjectInputStream getObjectInputStream(InputStream inputStream) throws IOException
IOExceptionCopyright © 2022 The Apache Software Foundation. All rights reserved.