public class StreamMarshall extends Marshall
Marshall for stream-based serializers and parsers.
| Constructor and Description |
|---|
StreamMarshall(OutputStreamSerializer s,
InputStreamParser p)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
write(Object o)
Serializes a POJO directly to a
. |
public StreamMarshall(OutputStreamSerializer s, InputStreamParser p)
s - The serializer to use for serializing output.
p - The parser to use for parsing input.
public final byte[] write(Object o) throws SerializeException
byte [].write in class Marshallo - The object to serialize.SerializeException - If a problem occurred trying to convert the output.Copyright © 2016–2019 The Apache Software Foundation. All rights reserved.