org.eaglei.repository.util
Class AppendingRDFHandler

java.lang.Object
  extended by org.openrdf.rio.helpers.RDFHandlerWrapper
      extended by org.eaglei.repository.util.AppendingRDFHandler
All Implemented Interfaces:
org.openrdf.rio.RDFHandler

public class AppendingRDFHandler
extends org.openrdf.rio.helpers.RDFHandlerWrapper

RDF handler that appends the results of multiple parses into one "output" handler.. call startRDF() exactly once, and require the application to call reallyEndRDF().

Author:
lcs

Constructor Summary
AppendingRDFHandler(org.openrdf.rio.RDFHandler deferTo)
          Constructor
 
Method Summary
 void endRDF()
          
 void reallyEndRDF()
          
 void startRDF()
          
 
Methods inherited from class org.openrdf.rio.helpers.RDFHandlerWrapper
handleComment, handleNamespace, handleStatement
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AppendingRDFHandler

public AppendingRDFHandler(org.openrdf.rio.RDFHandler deferTo)
Constructor

Parameters:
deferTo - the wrapped RDFHandler
Method Detail

startRDF

public void startRDF()
              throws org.openrdf.rio.RDFHandlerException

Specified by:
startRDF in interface org.openrdf.rio.RDFHandler
Overrides:
startRDF in class org.openrdf.rio.helpers.RDFHandlerWrapper
Throws:
org.openrdf.rio.RDFHandlerException

endRDF

public void endRDF()
            throws org.openrdf.rio.RDFHandlerException

Specified by:
endRDF in interface org.openrdf.rio.RDFHandler
Overrides:
endRDF in class org.openrdf.rio.helpers.RDFHandlerWrapper
Throws:
org.openrdf.rio.RDFHandlerException

reallyEndRDF

public void reallyEndRDF()
                  throws org.openrdf.rio.RDFHandlerException

Throws:
org.openrdf.rio.RDFHandlerException


Copyright © 2009-2011 Eagle-I. All Rights Reserved.