org.jrdf.writer.rdfxml
Class RdfXmlHeader

java.lang.Object
  extended by 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

Constructor Summary
RdfXmlHeader(String encoding, RdfNamespaceMap names)
          Constructor.
 
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
 

Constructor Detail

RdfXmlHeader

public RdfXmlHeader(String encoding,
                    RdfNamespaceMap names)
Constructor. Specifies the character encoding to be used.

Parameters:
encoding - charset
Method Detail

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.