|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jrdf.writer.ntriples.NTriplesWriterImpl
public class NTriplesWriterImpl
| Field Summary |
|---|
| Fields inherited from interface org.jrdf.writer.RdfWriter |
|---|
NEW_LINE |
| Constructor Summary | |
|---|---|
NTriplesWriterImpl()
|
|
| Method Summary | |
|---|---|
void |
close()
Close any streams - should be part of a try/finally block. |
void |
visitBlankNode(BlankNode blankNode)
Visit blank node. |
void |
visitLiteral(Literal literal)
Visit Literal. |
void |
visitNode(Node node)
Visit node. |
void |
visitResource(Resource resource)
Visit Resource. |
void |
visitURIReference(URIReference uriReference)
Visit URI Reference. |
void |
write(Graph graph,
OutputStream stream)
Writes the Graph contents to the OutputStream. |
void |
write(Graph graph,
Writer newWriter)
Writes the Graph contents to the Writer. |
void |
write(Graph graph,
Writer newWriter,
String encoding)
Writes the Graph contents to the Writer. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NTriplesWriterImpl()
| Method Detail |
|---|
public void write(Graph graph,
OutputStream stream)
throws WriteException,
GraphException
RdfWriter
write in interface RdfWritergraph - Graph inputstream - OutputStream output. Caller is responsible for closing stream.
WriteException - If the writer encounters an unrecoverable error.
GraphException - If an exception occurrs while reading the graph.
public void write(Graph graph,
Writer newWriter)
throws WriteException,
GraphException
RdfWriter
write in interface RdfWritergraph - Graph inputnewWriter - Writer output. Caller is responsible for closing writers.
WriteException - If the writer encounters an unrecoverable error.
GraphException - If an exception occurrs while reading the graph.
public void write(Graph graph,
Writer newWriter,
String encoding)
throws GraphException
RdfWriter
write in interface RdfWritergraph - Graph inputnewWriter - Writer output. Caller is responsible for closing writers.encoding - Encoding (UTF-8, UTF-16, etc).
GraphException - If an exception occurrs while reading the graph.
public void close()
throws WriteException
RdfWriter
close in interface RdfWriterWriteException - if there's an exception closing the streams.public void visitBlankNode(BlankNode blankNode)
TypedNodeVisitor
visitBlankNode in interface TypedNodeVisitorblankNode - the blank node to visit.public void visitURIReference(URIReference uriReference)
TypedNodeVisitor
visitURIReference in interface TypedNodeVisitoruriReference - the URI Reference to visit.public void visitLiteral(Literal literal)
TypedNodeVisitor
visitLiteral in interface TypedNodeVisitorliteral - the Literal to visit.public void visitNode(Node node)
TypedNodeVisitor
visitNode in interface TypedNodeVisitornode - the node to visit.public void visitResource(Resource resource)
TypedNodeVisitor
visitResource in interface TypedNodeVisitorresource - the node to visit.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||