org.openrdf.http.object.writers
Class ReadableByteChannelBodyWriter
java.lang.Object
org.openrdf.http.object.writers.ReadableByteChannelBodyWriter
- All Implemented Interfaces:
- MessageBodyWriter<ReadableByteChannel>
public class ReadableByteChannelBodyWriter
- extends Object
- implements MessageBodyWriter<ReadableByteChannel>
Converts an OutputStream into a ReadableByteChannel.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ReadableByteChannelBodyWriter
public ReadableByteChannelBodyWriter()
isText
public boolean isText(MessageType mtype)
- Specified by:
isText in interface MessageBodyWriter<ReadableByteChannel>
getSize
public long getSize(MessageType mtype,
ReadableByteChannel result,
Charset charset)
- Specified by:
getSize in interface MessageBodyWriter<ReadableByteChannel>
isWriteable
public boolean isWriteable(MessageType mtype)
- Specified by:
isWriteable in interface MessageBodyWriter<ReadableByteChannel>
getContentType
public String getContentType(MessageType mtype,
Charset charset)
- Specified by:
getContentType in interface MessageBodyWriter<ReadableByteChannel>
write
public ReadableByteChannel write(MessageType mtype,
ReadableByteChannel result,
String base,
Charset charset)
throws IOException
- Specified by:
write in interface MessageBodyWriter<ReadableByteChannel>
- Throws:
IOException
Copyright © 2004-2011 James Leigh Services Inc.. All Rights Reserved.