public class JsonRepresentation<T>
extends org.restlet.representation.OutputRepresentation
Constructor and Description |
---|
JsonRepresentation() |
Modifier and Type | Method and Description |
---|---|
T |
getObject()
Returns the wrapped object, deserializing the representation with Polygene
if necessary.
|
Class<T> |
getObjectClass()
Returns the object class to instantiate.
|
void |
write(OutputStream outputStream) |
getReader, write, write
append, exhaust, getAvailableSize, getDigest, getDisposition, getExpirationDate, getRange, getRegistration, getSize, getText, hasKnownSize, isAvailable, isEmpty, isSelectable, isTransient, release, setAvailable, setDigest, setDisposition, setExpirationDate, setListener, setRange, setSize, setTransient
getModificationDate, getTag, setModificationDate, setTag
public T getObject() throws IOException
IOException
- if there is an underlying I/O problem.public Class<T> getObjectClass()
public void write(OutputStream outputStream) throws IOException
write
in class org.restlet.representation.Representation
IOException