public interface Streamable
Instances must identify the media type of the content by implementing the getMediaType() method.
| Modifier and Type | Method and Description |
|---|---|
MediaType |
getMediaType()
Returns the serialized media type for this resource (e.g.
|
void |
streamTo(OutputStream os)
Serialize this object to the specified output stream.
|
void streamTo(OutputStream os) throws IOException
os - The output stream to stream to.IOException - Thrown by underlying stream.MediaType getMediaType()
Copyright © 2016–2019 The Apache Software Foundation. All rights reserved.