com.ctc.wstx.dtd
Class FullDTDReaderProxy

java.lang.Object
  extended bycom.ctc.wstx.dtd.DTDReaderProxy
      extended bycom.ctc.wstx.dtd.FullDTDReaderProxy

public final class FullDTDReaderProxy
extends DTDReaderProxy

Proxy implementation that will act as a full-featured DTD reader. Used by stream readers that do support full DTD handling.


Method Summary
static FullDTDReaderProxy getInstance()
           
 DTDSubset readExternalSubset(StreamScanner master, WstxInputSource src, ReaderConfig cfg, DTDSubset intSubset)
          Method called to read in the external subset definition.
 DTDSubset readInternalSubset(StreamScanner master, WstxInputSource input, ReaderConfig cfg)
          Method called to read in the internal subset definition.
 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
 

Method Detail

getInstance

public static FullDTDReaderProxy getInstance()

readInternalSubset

public 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.

Specified by:
readInternalSubset in class DTDReaderProxy
Throws:
java.io.IOException
javax.xml.stream.XMLStreamException

readExternalSubset

public 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.

Specified by:
readExternalSubset in class DTDReaderProxy
Throws:
java.io.IOException
javax.xml.stream.XMLStreamException

skipInternalSubset

public 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.

Specified by:
skipInternalSubset in class DTDReaderProxy
Throws:
java.io.IOException
javax.xml.stream.XMLStreamException