- All Known Subinterfaces:
@ThreadSafe public interface StreamAwareMarshaller
A minimal interface that facilitates the marshalling/unmarshalling of objects from the provided
OutputStream. Unlike the deprecated
StreamingMarshaller this interface
does not rely on the use of
ObjectOutput to read/write objects,
which provides greater flexibility when marshalling objects to streams using third party libraries.
- Ryan Emerson
Method SummaryModifier and TypeMethodDescription
booleanA method that checks whether the given object is marshallable as per the rules of this marshaller.
intAn method that provides an estimate of the buffer size that will be required once the object has been marshalled.
(Object o)A method that checks whether the given object is marshallable as per the rules of this marshaller.
o- object to verify whether it's marshallable or not
- true if the object is marshallable, otherwise false
(Object o)An method that provides an estimate of the buffer size that will be required once the object has been marshalled.
o- instance that will be stored in the buffer.
- int representing the next predicted buffer size.
MediaTypeassociated with the content produced by the marshaller