com.github.stephenc.javaisotools.sabre.impl
Class CopyingStreamHandler

java.lang.Object
  extended by com.github.stephenc.javaisotools.sabre.impl.ChainingStreamHandler
      extended by com.github.stephenc.javaisotools.sabre.impl.CopyingStreamHandler
All Implemented Interfaces:
ContentHandler, StreamHandler, StructureHandler

public class CopyingStreamHandler
extends ChainingStreamHandler


Constructor Summary
CopyingStreamHandler(File file, Element targetType, StructureHandler chainedStructureHandler, ContentHandler chainedContentHandler)
           
 
Method Summary
 void data(DataReference reference)
           
 void endDocument()
           
 void endElement()
           
 Fixup fixup(DataReference reference)
           
 void startDocument()
           
 void startElement(Element element)
           
 
Methods inherited from class com.github.stephenc.javaisotools.sabre.impl.ChainingStreamHandler
mark
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CopyingStreamHandler

public CopyingStreamHandler(File file,
                            Element targetType,
                            StructureHandler chainedStructureHandler,
                            ContentHandler chainedContentHandler)
                     throws FileNotFoundException
Throws:
FileNotFoundException
Method Detail

startDocument

public void startDocument()
                   throws HandlerException
Specified by:
startDocument in interface StructureHandler
Overrides:
startDocument in class ChainingStreamHandler
Throws:
HandlerException

startElement

public void startElement(Element element)
                  throws HandlerException
Specified by:
startElement in interface StructureHandler
Overrides:
startElement in class ChainingStreamHandler
Throws:
HandlerException

data

public void data(DataReference reference)
          throws HandlerException
Specified by:
data in interface ContentHandler
Overrides:
data in class ChainingStreamHandler
Throws:
HandlerException

fixup

public Fixup fixup(DataReference reference)
            throws HandlerException
Specified by:
fixup in interface ContentHandler
Overrides:
fixup in class ChainingStreamHandler
Throws:
HandlerException

endElement

public void endElement()
                throws HandlerException
Specified by:
endElement in interface StructureHandler
Overrides:
endElement in class ChainingStreamHandler
Throws:
HandlerException

endDocument

public void endDocument()
                 throws HandlerException
Specified by:
endDocument in interface StructureHandler
Overrides:
endDocument in class ChainingStreamHandler
Throws:
HandlerException


Copyright © 2013. All Rights Reserved.