org.jrdf.writer.rdfxml
Class RdfXmlHeader
java.lang.Object
org.jrdf.writer.rdfxml.RdfXmlHeader
- All Implemented Interfaces:
- RdfXmlWritable
public class RdfXmlHeader
- extends Object
- implements RdfXmlWritable
Represents an RDF/XML header that includes an XML header and opening RDF
element.
- Author:
- TurnerRX
Method Summary |
void |
write(PrintWriter writer)
Writes contents to the writer in RDF/XML format. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RdfXmlHeader
public RdfXmlHeader(String encoding,
RdfNamespaceMap names)
- Constructor. Specifies the character encoding to be used.
- Parameters:
encoding
- charset
write
public void write(PrintWriter writer)
throws IOException
- Description copied from interface:
RdfXmlWritable
- Writes contents to the writer in RDF/XML format.
- Specified by:
write
in interface RdfXmlWritable
- Parameters:
writer
- Writer output
- Throws:
IOException
- If an exception occurs while writing output.