public interface Writable
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.
|
Writer |
writeTo(Writer w)
Serialize this object to the specified writer.
|
Writer writeTo(Writer w) throws IOException
w - The writer to write to.IOException - Thrown by underlying stream.MediaType getMediaType()
Copyright © 2016–2019 The Apache Software Foundation. All rights reserved.