org.openrdf.http.object.readers
Class ReadableByteChannelBodyReader
java.lang.Object
org.openrdf.http.object.readers.ReadableByteChannelBodyReader
- All Implemented Interfaces:
- MessageBodyReader<ReadableByteChannel>
public class ReadableByteChannelBodyReader
- extends Object
- implements MessageBodyReader<ReadableByteChannel>
Converts an InputStream to a ReadableByteChannel.
|
Method Summary |
boolean |
isReadable(Class<?> type,
Type genericType,
String mediaType,
ObjectConnection con)
|
ReadableByteChannel |
readFrom(Class<?> type,
Type genericType,
String mimeType,
ReadableByteChannel in,
Charset charset,
String base,
String location,
ObjectConnection con)
Must close InputStream or return an object that will later close the
InputStream. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ReadableByteChannelBodyReader
public ReadableByteChannelBodyReader()
isReadable
public boolean isReadable(Class<?> type,
Type genericType,
String mediaType,
ObjectConnection con)
- Specified by:
isReadable in interface MessageBodyReader<ReadableByteChannel>
readFrom
public ReadableByteChannel readFrom(Class<?> type,
Type genericType,
String mimeType,
ReadableByteChannel in,
Charset charset,
String base,
String location,
ObjectConnection con)
throws IOException
- Description copied from interface:
MessageBodyReader
- Must close InputStream or return an object that will later close the
InputStream.
- Specified by:
readFrom in interface MessageBodyReader<ReadableByteChannel>
- Throws:
IOException
Copyright © 2004-2010 James Leigh Services Inc.. All Rights Reserved.