|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface RdfWriter
General interface for RDF Writer.
| Field Summary | |
|---|---|
static String |
NEW_LINE
XML's new line character (LF). |
| Method Summary | |
|---|---|
void |
close()
Close any streams - should be part of a try/finally block. |
void |
write(Graph graph,
OutputStream stream)
Writes the Graph contents to the OutputStream. |
void |
write(Graph graph,
Writer writer)
Writes the Graph contents to the Writer. |
void |
write(Graph graph,
Writer writer,
String encoding)
Writes the Graph contents to the Writer. |
| Field Detail |
|---|
static final String NEW_LINE
| Method Detail |
|---|
void write(Graph graph,
OutputStream stream)
throws WriteException,
GraphException
graph - 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.
void write(Graph graph,
Writer writer)
throws WriteException,
GraphException
graph - Graph inputwriter - 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.
void write(Graph graph,
Writer writer,
String encoding)
throws GraphException
graph - Graph inputwriter - Writer output. Caller is responsible for closing writers.encoding - Encoding (UTF-8, UTF-16, etc).
WriteException - If the writer encounters an unrecoverable error.
GraphException - If an exception occurrs while reading the graph.
void close()
throws WriteException
WriteException - if there's an exception closing the streams.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||