public class SerializationContext extends Object
| Constructor and Description |
|---|
SerializationContext(TypeDomain typeDomain) |
| Modifier and Type | Method and Description |
|---|---|
<O> void |
addFactory(ObjectFactory<O> factory) |
<O> O |
clone(O o) |
<O> ObjectFactory<? super O> |
getFactory(Class<O> type) |
TypeDomain |
getTypeDomain() |
Object |
read(byte[] bytes) |
Object |
read(InputStream in) |
byte[] |
write(Object o) |
void |
write(Object o,
OutputStream out) |
public SerializationContext(TypeDomain typeDomain)
public <O> void addFactory(ObjectFactory<O> factory)
public TypeDomain getTypeDomain()
public <O> ObjectFactory<? super O> getFactory(Class<O> type)
public <O> O clone(O o)
throws IOException,
ClassNotFoundException
IOExceptionClassNotFoundExceptionpublic void write(Object o, OutputStream out) throws IOException
IOExceptionpublic byte[] write(Object o) throws IOException
IOExceptionpublic Object read(byte[] bytes) throws IOException, ClassNotFoundException
IOExceptionClassNotFoundExceptionpublic Object read(InputStream in) throws IOException, ClassNotFoundException
IOExceptionClassNotFoundExceptionCopyright © 2017 JBoss by Red Hat. All Rights Reserved.