org.glassfish.jersey.message.internal
Class SourceProvider.SourceWriter
java.lang.Object
org.glassfish.jersey.message.internal.SourceProvider.SourceWriter
- All Implemented Interfaces:
- MessageBodyWriter<Source>
- Enclosing class:
- SourceProvider
@Singleton
public static final class SourceProvider.SourceWriter
- extends Object
- implements MessageBodyWriter<Source>
Provider for marshaling Source instances.
|
Method Summary |
long |
getSize(Source o,
Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType)
|
boolean |
isWriteable(Class<?> t,
Type gt,
Annotation[] as,
MediaType mediaType)
|
void |
writeTo(Source source,
Class<?> t,
Type gt,
Annotation[] as,
MediaType mediaType,
MultivaluedMap<String,Object> httpHeaders,
OutputStream entityStream)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SourceProvider.SourceWriter
public SourceProvider.SourceWriter(@Context
Factory<SAXParserFactory> spf,
@Context
Factory<TransformerFactory> tf)
isWriteable
public boolean isWriteable(Class<?> t,
Type gt,
Annotation[] as,
MediaType mediaType)
- Specified by:
isWriteable in interface MessageBodyWriter<Source>
getSize
public long getSize(Source o,
Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType)
- Specified by:
getSize in interface MessageBodyWriter<Source>
writeTo
public void writeTo(Source source,
Class<?> t,
Type gt,
Annotation[] as,
MediaType mediaType,
MultivaluedMap<String,Object> httpHeaders,
OutputStream entityStream)
throws IOException
- Specified by:
writeTo in interface MessageBodyWriter<Source>
- Throws:
IOException
Copyright © 2007-2013 Oracle Corporation. All Rights Reserved. Use is subject to license terms.