public interface Streamable
Instances must identify the media type of the content by implementing the getMediaType()
method.
Modifier and Type | Method and Description |
---|---|
String |
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.String getMediaType()
Copyright © 2016–2020 The Apache Software Foundation. All rights reserved.