Package org.glassfish.jersey.server
Class ChunkedResponseWriter
- java.lang.Object
-
- org.glassfish.jersey.server.ChunkedResponseWriter
-
- All Implemented Interfaces:
MessageBodyWriter<ChunkedOutput<?>>
public final class ChunkedResponseWriter extends Object implements MessageBodyWriter<ChunkedOutput<?>>
Used for writingChunkedOutput.- Author:
- Pavel Bucek
- See Also:
MessageBodyWriter
-
-
Constructor Summary
Constructors Constructor Description ChunkedResponseWriter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetSize(ChunkedOutput<?> chunkedOutput, Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)booleanisWriteable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)voidwriteTo(ChunkedOutput<?> chunkedOutput, Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String,Object> httpHeaders, OutputStream entityStream)
-
-
-
Method Detail
-
isWriteable
public boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
- Specified by:
isWriteablein interfaceMessageBodyWriter<ChunkedOutput<?>>
-
getSize
public long getSize(ChunkedOutput<?> chunkedOutput, Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
- Specified by:
getSizein interfaceMessageBodyWriter<ChunkedOutput<?>>
-
writeTo
public void writeTo(ChunkedOutput<?> chunkedOutput, Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String,Object> httpHeaders, OutputStream entityStream) throws IOException, WebApplicationException
- Specified by:
writeToin interfaceMessageBodyWriter<ChunkedOutput<?>>- Throws:
IOExceptionWebApplicationException
-
-