public class KeyConverterAdapter extends Object implements Marshaller<Object>
FORMAT_OUTPUT| Constructor and Description |
|---|
KeyConverterAdapter(KeyConverter converter)
Construct KeyConverterAdapter instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
marshal(Object oValue, OutputStream out, javax.ws.rs.core.MultivaluedMap<String,Object> httpHeaders)
Write the specified object into the given stream.
|
Object |
unmarshal(InputStream in, javax.ws.rs.core.MediaType mediaType)
Read an object from the specified stream.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitmarshalAsFragmentpublic KeyConverterAdapter(KeyConverter converter)
converter - key converter used to marshall key objectspublic void marshal(Object oValue, OutputStream out, javax.ws.rs.core.MultivaluedMap<String,Object> httpHeaders) throws IOException
Marshallermarshal in interface Marshaller<Object>oValue - object to marshallout - the OutputStream for the HTTP entity. The implementation should not close the output stream.httpHeaders - a mutable map of the HTTP message headers.IOException - if an error occurs during marshallingpublic Object unmarshal(InputStream in, javax.ws.rs.core.MediaType mediaType) throws IOException
Marshallerunmarshal in interface Marshaller<Object>in - stream to read frommediaType - the media type of the object to readIOException - if an error occurs during unmarshalling