com.ctc.wstx.dtd
Class DTDReaderProxy

java.lang.Object
  extended bycom.ctc.wstx.dtd.DTDReaderProxy
Direct Known Subclasses:
FullDTDReaderProxy, MinimalDTDReaderProxy

public abstract class DTDReaderProxy
extends java.lang.Object

Interface that defines functionality for Objects that act as DTD reader proxies. Proxy approach is just used to allow code insulation; it would have been possible to use factory/instance approach too, but this way we end up with few more classes.


Constructor Summary
DTDReaderProxy()
           
 
Method Summary
abstract  DTDSubset readExternalSubset(StreamScanner master, WstxInputSource src, ReaderConfig cfg, DTDSubset intSubset)
          Method called to read in the external subset definition.
abstract  DTDSubset readInternalSubset(StreamScanner master, WstxInputSource input, ReaderConfig cfg)
          Method called to read in the internal subset definition.
abstract  void skipInternalSubset(StreamScanner master, WstxInputSource input, ReaderConfig cfg)
          Method similar to readInternalSubset(com.ctc.wstx.sr.StreamScanner, com.ctc.wstx.io.WstxInputSource, com.ctc.wstx.api.ReaderConfig), in that it skims through structure of internal subset, but without doing any sort of validation, or parsing of contents.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DTDReaderProxy

public DTDReaderProxy()
Method Detail

readInternalSubset

public abstract DTDSubset readInternalSubset(StreamScanner master,
                                             WstxInputSource input,
                                             ReaderConfig cfg)
                                      throws java.io.IOException,
                                             javax.xml.stream.XMLStreamException
Method called to read in the internal subset definition.

Throws:
java.io.IOException
javax.xml.stream.XMLStreamException

readExternalSubset

public abstract DTDSubset readExternalSubset(StreamScanner master,
                                             WstxInputSource src,
                                             ReaderConfig cfg,
                                             DTDSubset intSubset)
                                      throws java.io.IOException,
                                             javax.xml.stream.XMLStreamException
Method called to read in the external subset definition.

Throws:
java.io.IOException
javax.xml.stream.XMLStreamException

skipInternalSubset

public abstract void skipInternalSubset(StreamScanner master,
                                        WstxInputSource input,
                                        ReaderConfig cfg)
                                 throws java.io.IOException,
                                        javax.xml.stream.XMLStreamException
Method similar to readInternalSubset(com.ctc.wstx.sr.StreamScanner, com.ctc.wstx.io.WstxInputSource, com.ctc.wstx.api.ReaderConfig), in that it skims through structure of internal subset, but without doing any sort of validation, or parsing of contents. Method may still throw an exception, if skipping causes EOF or there's an I/O problem.

Throws:
java.io.IOException
javax.xml.stream.XMLStreamException