@Provider @InterfaceAudience.Private public class JSONProvider extends Object implements javax.ws.rs.ext.MessageBodyWriter<org.json.simple.JSONStreamAware>
| Constructor and Description |
|---|
JSONProvider() |
| Modifier and Type | Method and Description |
|---|---|
long |
getSize(org.json.simple.JSONStreamAware jsonStreamAware,
Class<?> aClass,
Type type,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType) |
boolean |
isWriteable(Class<?> aClass,
Type type,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType) |
void |
writeTo(org.json.simple.JSONStreamAware jsonStreamAware,
Class<?> aClass,
Type type,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType,
javax.ws.rs.core.MultivaluedMap<String,Object> stringObjectMultivaluedMap,
OutputStream outputStream) |
public boolean isWriteable(Class<?> aClass, Type type, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
isWriteable in interface javax.ws.rs.ext.MessageBodyWriter<org.json.simple.JSONStreamAware>public long getSize(org.json.simple.JSONStreamAware jsonStreamAware,
Class<?> aClass,
Type type,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType)
getSize in interface javax.ws.rs.ext.MessageBodyWriter<org.json.simple.JSONStreamAware>public void writeTo(org.json.simple.JSONStreamAware jsonStreamAware,
Class<?> aClass,
Type type,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType,
javax.ws.rs.core.MultivaluedMap<String,Object> stringObjectMultivaluedMap,
OutputStream outputStream)
throws IOException,
javax.ws.rs.WebApplicationException
writeTo in interface javax.ws.rs.ext.MessageBodyWriter<org.json.simple.JSONStreamAware>IOExceptionjavax.ws.rs.WebApplicationExceptionCopyright © 2008–2024 Apache Software Foundation. All rights reserved.