org.openrdf.http.object.writers.base
Class URIListWriter<URI>
java.lang.Object
org.openrdf.http.object.writers.base.URIListWriter<URI>
- All Implemented Interfaces:
- MessageBodyWriter<URI>
- Direct Known Subclasses:
- RDFObjectURIWriter
public class URIListWriter<URI>
- extends Object
- implements MessageBodyWriter<URI>
Writes text/uri-list files.
|
Method Summary |
String |
getContentType(String mimeType,
Class<?> type,
Type genericType,
ObjectFactory of,
Charset charset)
|
long |
getSize(String mimeType,
Class<?> ctype,
Type gtype,
ObjectFactory of,
URI result,
Charset charset)
|
boolean |
isText(String mimeType,
Class<?> type,
Type genericType,
ObjectFactory of)
|
boolean |
isWriteable(String mimeType,
Class<?> ctype,
Type gtype,
ObjectFactory of)
|
protected String |
toString(URI result)
|
ReadableByteChannel |
write(String mimeType,
Class<?> ctype,
Type gtype,
ObjectFactory of,
URI result,
String base,
Charset charset)
|
void |
writeTo(String mimeType,
Class<?> ctype,
Type gtype,
ObjectFactory of,
URI 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 |
URIListWriter
public URIListWriter(Class<URI> componentType)
isText
public boolean isText(String mimeType,
Class<?> type,
Type genericType,
ObjectFactory of)
- Specified by:
isText in interface MessageBodyWriter<URI>
isWriteable
public boolean isWriteable(String mimeType,
Class<?> ctype,
Type gtype,
ObjectFactory of)
- Specified by:
isWriteable in interface MessageBodyWriter<URI>
getContentType
public String getContentType(String mimeType,
Class<?> type,
Type genericType,
ObjectFactory of,
Charset charset)
- Specified by:
getContentType in interface MessageBodyWriter<URI>
getSize
public long getSize(String mimeType,
Class<?> ctype,
Type gtype,
ObjectFactory of,
URI result,
Charset charset)
- Specified by:
getSize in interface MessageBodyWriter<URI>
writeTo
public void writeTo(String mimeType,
Class<?> ctype,
Type gtype,
ObjectFactory of,
URI result,
String base,
Charset charset,
OutputStream out,
int bufSize)
throws IOException,
OpenRDFException,
XMLStreamException,
TransformerException,
ParserConfigurationException
- Throws:
IOException
OpenRDFException
XMLStreamException
TransformerException
ParserConfigurationException
write
public ReadableByteChannel write(String mimeType,
Class<?> ctype,
Type gtype,
ObjectFactory of,
URI result,
String base,
Charset charset)
throws IOException,
OpenRDFException,
XMLStreamException,
TransformerException,
ParserConfigurationException
- Specified by:
write in interface MessageBodyWriter<URI>
- Throws:
IOException
OpenRDFException
XMLStreamException
TransformerException
ParserConfigurationException
toString
protected String toString(URI result)
Copyright © 2004-2010 James Leigh Services Inc.. All Rights Reserved.