org.openrdf.server.metadata.writers
Class ReadableBodyWriter
java.lang.Object
org.openrdf.server.metadata.writers.ReadableBodyWriter
- All Implemented Interfaces:
- MessageBodyWriter<Readable>
public class ReadableBodyWriter
- extends Object
- implements MessageBodyWriter<Readable>
|
Method Summary |
String |
getContentType(String mimeType,
Class<?> type,
ObjectFactory of,
Charset charset)
|
long |
getSize(String mimeType,
Class<?> type,
ObjectFactory of,
Readable t)
|
boolean |
isWriteable(String mimeType,
Class<?> type,
ObjectFactory of)
|
void |
writeTo(String mimeType,
Class<?> type,
ObjectFactory of,
Readable result,
String base,
Charset charset,
OutputStream out,
int bufSize)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ReadableBodyWriter
public ReadableBodyWriter()
isWriteable
public boolean isWriteable(String mimeType,
Class<?> type,
ObjectFactory of)
- Specified by:
isWriteable in interface MessageBodyWriter<Readable>
getSize
public long getSize(String mimeType,
Class<?> type,
ObjectFactory of,
Readable t)
- Specified by:
getSize in interface MessageBodyWriter<Readable>
getContentType
public String getContentType(String mimeType,
Class<?> type,
ObjectFactory of,
Charset charset)
- Specified by:
getContentType in interface MessageBodyWriter<Readable>
writeTo
public void writeTo(String mimeType,
Class<?> type,
ObjectFactory of,
Readable result,
String base,
Charset charset,
OutputStream out,
int bufSize)
throws IOException
- Specified by:
writeTo in interface MessageBodyWriter<Readable>
- Throws:
IOException
Copyright © 2004-2009 James Leigh Services Inc.. All Rights Reserved.