|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.openrdf.rio.rdfxml.RdfXmlWriter
An implementation of the RdfDocumentWriter interface that writes RDF documents in XML-serialized RDF format.
| Constructor Summary | |
RdfXmlWriter(OutputStream out)
Creates a new RdfXmlWriter that will write to the supplied OutputStream. |
|
RdfXmlWriter(Writer out)
Creates a new RdfXmlWriter that will write to the supplied Writer. |
|
| Method Summary | |
void |
addStyleSheet(String href,
String type)
|
void |
addStyleSheet(String href,
String type,
String title,
String media,
String charset,
boolean alternate)
Associate a stylesheet with this XML document. |
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 RdfXmlWriter(OutputStream out)
out - The OutputStream to write the RDF/XML document to.public RdfXmlWriter(Writer out)
out - The Writer to write the RDF/XML 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
public void addStyleSheet(String href,
String type,
String title,
String media,
String charset,
boolean alternate)
href - Required stylesheet attributetype - Required stylesheet attributetitle - Optional stylesheet attributemedia - Optional stylesheet attributecharset - Optional stylesheet attributealternate - Optional stylesheet attribute
public void addStyleSheet(String href,
String type)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||