org.jboss.resteasy.plugins.providers
@Provider public class DefaultTextPlain extends Object implements MessageBodyReader, MessageBodyWriter
Constructor and Description |
---|
DefaultTextPlain() |
Modifier and Type | Method and Description |
---|---|
long |
getSize(Object o,
Class type,
Type genericType,
Annotation[] annotations,
MediaType mediaType) |
boolean |
isReadable(Class type,
Type genericType,
Annotation[] annotations,
MediaType mediaType) |
boolean |
isWriteable(Class type,
Type genericType,
Annotation[] annotations,
MediaType mediaType) |
Object |
readFrom(Class type,
Type genericType,
Annotation[] annotations,
MediaType mediaType,
MultivaluedMap httpHeaders,
InputStream entityStream) |
void |
writeTo(Object o,
Class type,
Type genericType,
Annotation[] annotations,
MediaType mediaType,
MultivaluedMap httpHeaders,
OutputStream entityStream) |
public boolean isReadable(Class type, Type genericType, Annotation[] annotations, MediaType mediaType)
isReadable
in interface MessageBodyReader
public Object readFrom(Class type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap httpHeaders, InputStream entityStream) throws IOException, WebApplicationException
readFrom
in interface MessageBodyReader
IOException
WebApplicationException
public boolean isWriteable(Class type, Type genericType, Annotation[] annotations, MediaType mediaType)
isWriteable
in interface MessageBodyWriter
public long getSize(Object o, Class type, Type genericType, Annotation[] annotations, MediaType mediaType)
getSize
in interface MessageBodyWriter
public void writeTo(Object o, Class type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap httpHeaders, OutputStream entityStream) throws IOException, WebApplicationException
writeTo
in interface MessageBodyWriter
IOException
WebApplicationException
Copyright © 2015. All Rights Reserved.