public abstract class StreamMarshall extends Marshall
Marshall
for stream-based serializers and parsers.
Modifier | Constructor and Description |
---|---|
protected |
StreamMarshall(OutputStreamSerializer s,
InputStreamParser p)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
write(Object o)
Serializes a POJO directly to a
. |
protected 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 Marshall
o
- The object to serialize.SerializeException
- If a problem occurred trying to convert the output.Copyright © 2016–2019 The Apache Software Foundation. All rights reserved.