com.mkdoc.sax
Class AbstractTripleWriter

java.lang.Object
  |
  +--com.mkdoc.sax.AbstractContentHandler
        |
        +--com.mkdoc.sax.AbstractRdfContentHandler
              |
              +--com.mkdoc.sax.AbstractTripleWriter
All Implemented Interfaces:
org.xml.sax.ContentHandler, RdfContentHandler
Direct Known Subclasses:
LinkTripleWriter, MetaTripleWriter, XhtmlTripleWriter

public abstract class AbstractTripleWriter
extends AbstractRdfContentHandler

Base class for content handlers that write N-Triples.

Version:
0.4 2005-05-31
Author:
Philip Shaw

Field Summary
protected  FileStoreManager manager
          A manager reference.
protected  java.io.PrintWriter out
          The output stream for the metadata.
 
Fields inherited from class com.mkdoc.sax.AbstractRdfContentHandler
DC_PREFIX, DCTERMS_URI, NODE_PREFIX, NODE_SUFFIX, NS_XHTML1, profile, RDF_TYPE, RDF_VALUE, subject, URI_SCHEMES
 
Fields inherited from class com.mkdoc.sax.AbstractContentHandler
locator
 
Constructor Summary
AbstractTripleWriter()
           
 
Method Summary
 void endDocument()
          Flush the output and close.
 void startDocument()
          Write an initial status message.
 
Methods inherited from class com.mkdoc.sax.AbstractRdfContentHandler
escape, expandPredicate, expandPredicates, expandScheme, getBNode, getBNodeId, getSubject, isUri, setApplicationProfile, setSubject
 
Methods inherited from class com.mkdoc.sax.AbstractContentHandler
characters, endElement, endPrefixMapping, getAttributeValue, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startElement, startPrefixMapping
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.xml.sax.ContentHandler
characters, endElement, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startElement, startPrefixMapping
 

Field Detail

manager

protected FileStoreManager manager
A manager reference.

Since:
Version 0.4 2005-05-31

out

protected java.io.PrintWriter out
The output stream for the metadata.

Since:
Version 0.1 2005-02-14
Constructor Detail

AbstractTripleWriter

public AbstractTripleWriter()
Method Detail

startDocument

public final void startDocument()
                         throws org.xml.sax.SAXException
Write an initial status message.

Specified by:
startDocument in interface org.xml.sax.ContentHandler
Overrides:
startDocument in class AbstractContentHandler
Throws:
org.xml.sax.SAXException - If there is a problem getting an output for the parse.
Since:
Version 0.1 2005-02-14

endDocument

public final void endDocument()
                       throws org.xml.sax.SAXException
Flush the output and close.

Specified by:
endDocument in interface org.xml.sax.ContentHandler
Overrides:
endDocument in class AbstractContentHandler
Throws:
org.xml.sax.SAXException - Never thrown in this implementation.
Since:
Version 0.1 2005-02-14