org.openrdf.http.object.writers
Class SetOfRDFObjectWriter
java.lang.Object
org.openrdf.http.object.writers.SetOfRDFObjectWriter
- All Implemented Interfaces:
- MessageBodyWriter<Set<?>>
public class SetOfRDFObjectWriter
- extends Object
- implements MessageBodyWriter<Set<?>>
Describes the set of RDFObjects as RDF.
- Author:
- James Leigh
|
Method Summary |
String |
getContentType(MessageType mtype,
Charset charset)
|
long |
getSize(MessageType mtype,
Set<?> result,
Charset charset)
|
boolean |
isText(MessageType mtype)
|
boolean |
isWriteable(MessageType mtype)
|
ReadableByteChannel |
write(MessageType mtype,
Set<?> result,
String base,
Charset charset)
|
void |
writeTo(MessageType mtype,
Set<?> set,
String base,
Charset charset,
WritableByteChannel out,
int bufSize)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SetOfRDFObjectWriter
public SetOfRDFObjectWriter()
isText
public boolean isText(MessageType mtype)
- Specified by:
isText in interface MessageBodyWriter<Set<?>>
getSize
public long getSize(MessageType mtype,
Set<?> result,
Charset charset)
- Specified by:
getSize in interface MessageBodyWriter<Set<?>>
isWriteable
public boolean isWriteable(MessageType mtype)
- Specified by:
isWriteable in interface MessageBodyWriter<Set<?>>
getContentType
public String getContentType(MessageType mtype,
Charset charset)
- Specified by:
getContentType in interface MessageBodyWriter<Set<?>>
write
public ReadableByteChannel write(MessageType mtype,
Set<?> result,
String base,
Charset charset)
throws IOException,
OpenRDFException
- Specified by:
write in interface MessageBodyWriter<Set<?>>
- Throws:
IOException
OpenRDFException
writeTo
public void writeTo(MessageType mtype,
Set<?> set,
String base,
Charset charset,
WritableByteChannel out,
int bufSize)
throws IOException,
OpenRDFException
- Throws:
IOException
OpenRDFException
Copyright © 2004-2011 James Leigh Services Inc.. All Rights Reserved.