org.openrdf.http.object.writers
Class ReadableByteChannelBodyWriter

java.lang.Object
  extended by 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.


Constructor Summary
ReadableByteChannelBodyWriter()
           
 
Method Summary
 String getContentType(MessageType mtype, Charset charset)
           
 long getSize(MessageType mtype, ReadableByteChannel result, Charset charset)
           
 boolean isText(MessageType mtype)
           
 boolean isWriteable(MessageType mtype)
           
 ReadableByteChannel write(MessageType mtype, ReadableByteChannel result, String base, Charset charset)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReadableByteChannelBodyWriter

public ReadableByteChannelBodyWriter()
Method Detail

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.