org.dspace.adapters.rdf
Class RDFContentHandlerImpl

java.lang.Object
  extended by org.dspace.adapters.rdf.RDFContentHandlerImpl
All Implemented Interfaces:
org.openrdf.rio.RDFHandler

public class RDFContentHandlerImpl
extends Object
implements org.openrdf.rio.RDFHandler

Author:
mdiggory

Nested Class Summary
protected  class RDFContentHandlerImpl.LiteralXMLReader
           
 
Field Summary
static String CDATA
           
static String ENTITIES
           
static String ENTITY
           
protected  ContentHandler handler
           
protected  boolean headerWritten
           
static String ID
           
static String IDREF
           
static String IDREFS
           
protected  org.openrdf.model.Statement lastWrittenStatement
           
protected  LexicalHandler lexer
           
protected  NamespaceSupport namespaces
           
static String NMTOKEN
           
static String NMTOKENS
           
static String NOTATION
           
protected  boolean writingStarted
           
 
Constructor Summary
RDFContentHandlerImpl(ContentHandler handler)
          Creates a new RDFXMLWriter that will write to the supplied Writer.
 
Method Summary
 void endRDF()
           
 org.openrdf.rio.RDFFormat getRDFFormat()
           
 void handleComment(String arg0)
           
 void handleNamespace(String prefix, String namespace)
           
 void handleStatement(org.openrdf.model.Statement st)
           
 void startRDF()
           
protected  void writeHeader()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

handler

protected ContentHandler handler

lexer

protected LexicalHandler lexer

CDATA

public static final String CDATA
See Also:
Constant Field Values

ID

public static final String ID
See Also:
Constant Field Values

IDREF

public static final String IDREF
See Also:
Constant Field Values

IDREFS

public static final String IDREFS
See Also:
Constant Field Values

NMTOKEN

public static final String NMTOKEN
See Also:
Constant Field Values

NMTOKENS

public static final String NMTOKENS
See Also:
Constant Field Values

ENTITY

public static final String ENTITY
See Also:
Constant Field Values

ENTITIES

public static final String ENTITIES
See Also:
Constant Field Values

NOTATION

public static final String NOTATION
See Also:
Constant Field Values

namespaces

protected NamespaceSupport namespaces

writingStarted

protected boolean writingStarted

headerWritten

protected boolean headerWritten

lastWrittenStatement

protected org.openrdf.model.Statement lastWrittenStatement
Constructor Detail

RDFContentHandlerImpl

public RDFContentHandlerImpl(ContentHandler handler)
Creates a new RDFXMLWriter that will write to the supplied Writer.

Method Detail

getRDFFormat

public org.openrdf.rio.RDFFormat getRDFFormat()

startRDF

public void startRDF()
Specified by:
startRDF in interface org.openrdf.rio.RDFHandler

writeHeader

protected void writeHeader()
                    throws SAXException
Throws:
SAXException

endRDF

public void endRDF()
            throws org.openrdf.rio.RDFHandlerException
Specified by:
endRDF in interface org.openrdf.rio.RDFHandler
Throws:
org.openrdf.rio.RDFHandlerException

handleNamespace

public void handleNamespace(String prefix,
                            String namespace)
Specified by:
handleNamespace in interface org.openrdf.rio.RDFHandler

handleStatement

public void handleStatement(org.openrdf.model.Statement st)
                     throws org.openrdf.rio.RDFHandlerException
Specified by:
handleStatement in interface org.openrdf.rio.RDFHandler
Throws:
org.openrdf.rio.RDFHandlerException

handleComment

public void handleComment(String arg0)
                   throws org.openrdf.rio.RDFHandlerException
Specified by:
handleComment in interface org.openrdf.rio.RDFHandler
Throws:
org.openrdf.rio.RDFHandlerException


Copyright © 2008 The DSpace Foundation. All Rights Reserved.