org.jrdf.writer.rdfxml
Class RdfXmlDocumentImpl

java.lang.Object
  extended by org.jrdf.writer.rdfxml.RdfXmlDocumentImpl
All Implemented Interfaces:
RdfXmlDocument

public class RdfXmlDocumentImpl
extends Object
implements RdfXmlDocument

Represents an RDF/XML header that includes an XML header and opening RDF element.

Author:
TurnerRX

Constructor Summary
RdfXmlDocumentImpl(String encoding, RdfNamespaceMap names, javax.xml.stream.XMLStreamWriter xmlStreamWriter)
          Constructor.
 
Method Summary
 void writeFooter()
           
 void writeHeader()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RdfXmlDocumentImpl

public RdfXmlDocumentImpl(String encoding,
                          RdfNamespaceMap names,
                          javax.xml.stream.XMLStreamWriter xmlStreamWriter)
Constructor. Specifies the character encoding to be used.

Parameters:
encoding - charset
names - the namespace maps (from prefix to full name and back).
xmlStreamWriter - the writer to add new elements to.
Method Detail

writeHeader

public void writeHeader()
                 throws WriteException
Specified by:
writeHeader in interface RdfXmlDocument
Throws:
WriteException

writeFooter

public void writeFooter()
                 throws WriteException
Specified by:
writeFooter in interface RdfXmlDocument
Throws:
WriteException