com.ctc.wstx.dtd
Class MinimalDTDReaderProxy

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

public final class MinimalDTDReaderProxy
extends DTDReaderProxy

Proxy implementation that will act as a dummy DTD reader that can only skip internal subset, but not do any actual reading. Used by stream readers that do not need to support actual DTD handling.


Method Summary
static MinimalDTDReaderProxy 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 MinimalDTDReaderProxy 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