|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.openrdf.rio.ntriples.NTriplesWriter
An implementation of the RdfDocumentWriter interface that writes RDF documents in N-Triples format. The N-Triples format is defined in this section of the RDF Test Cases document.
| Constructor Summary | |
NTriplesWriter(OutputStream out)
Creates a new NTriplesWriter that will write to the supplied OutputStream. |
|
NTriplesWriter(Writer out)
Creates a new NTriplesWriter that will write to the supplied Writer. |
|
| Method Summary | |
void |
endDocument()
Ends the document writing. |
void |
setNamespace(String prefix,
String name)
Sets a mapping from a namespace prefix to a namespace name. |
void |
startDocument()
Starts the document writing. |
void |
writeComment(String comment)
Writes a comment to the document. |
void |
writeStatement(Resource subj,
URI pred,
Value obj)
Writes a statement to the document. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public NTriplesWriter(OutputStream out)
out - The OutputStream to write the N-Triples document to.public NTriplesWriter(Writer out)
out - The Writer to write the N-Triples document to.| Method Detail |
public void setNamespace(String prefix,
String name)
RdfDocumentWriter
setNamespace in interface RdfDocumentWriter
public void startDocument()
throws IOException
RdfDocumentWriter
startDocument in interface RdfDocumentWriterIOException
public void endDocument()
throws IOException
RdfDocumentWriter
endDocument in interface RdfDocumentWriterIOException
public void writeStatement(Resource subj,
URI pred,
Value obj)
throws IOException
RdfDocumentWriter
writeStatement in interface RdfDocumentWriterIOException
public void writeComment(String comment)
throws IOException
RdfDocumentWriter
writeComment in interface RdfDocumentWriterIOException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||