< prev index next >

src/java.base/share/classes/jdk/internal/util/xml/impl/ParserSAX.java

Print this page




 632         throws SAXException
 633     {
 634         mHandDtd.unparsedEntityDecl(name, pubid, sysid, notation);
 635     }
 636 
 637     /**
 638      * Notifies the handler about fatal parsing error.
 639      *
 640      * @param msg The problem description message.
 641      */
 642     protected void panic(String msg) throws SAXException {
 643         SAXParseException spe = new SAXParseException(msg, this);
 644         mHandErr.fatalError(spe);
 645         throw spe;  // [#1.2] fatal error definition
 646     }
 647 
 648     /**
 649      * Reports characters and empties the parser's buffer. This method is called
 650      * only if parser is going to return control to the main loop. This means
 651      * that this method may use parser buffer to report white space without
 652      * copeing characters to temporary buffer.
 653      */
 654     protected void bflash() throws SAXException {
 655         if (mBuffIdx >= 0) {
 656             //          Textual data has been read
 657             mHandCont.characters(mBuff, 0, (mBuffIdx + 1));
 658             mBuffIdx = -1;
 659         }
 660     }
 661 
 662     /**
 663      * Reports white space characters and empties the parser's buffer. This
 664      * method is called only if parser is going to return control to the main
 665      * loop. This means that this method may use parser buffer to report white
 666      * space without copeing characters to temporary buffer.
 667      */
 668     protected void bflash_ws() throws SAXException {
 669         if (mBuffIdx >= 0) {
 670             // BUG: With additional info from DTD and xml:space attr [#2.10]
 671             // the following call can be supported:
 672             // mHandCont.ignorableWhitespace(mBuff, 0, (mBuffIdx + 1));
 673 
 674             //          Textual data has been read
 675             mHandCont.characters(mBuff, 0, (mBuffIdx + 1));
 676             mBuffIdx = -1;
 677         }
 678     }
 679 
 680     public boolean getFeature(String name) {
 681         throw new UnsupportedOperationException("Not supported yet.");
 682     }
 683 
 684     public void setFeature(String name, boolean value) {
 685         throw new UnsupportedOperationException("Not supported yet.");
 686     }


 632         throws SAXException
 633     {
 634         mHandDtd.unparsedEntityDecl(name, pubid, sysid, notation);
 635     }
 636 
 637     /**
 638      * Notifies the handler about fatal parsing error.
 639      *
 640      * @param msg The problem description message.
 641      */
 642     protected void panic(String msg) throws SAXException {
 643         SAXParseException spe = new SAXParseException(msg, this);
 644         mHandErr.fatalError(spe);
 645         throw spe;  // [#1.2] fatal error definition
 646     }
 647 
 648     /**
 649      * Reports characters and empties the parser's buffer. This method is called
 650      * only if parser is going to return control to the main loop. This means
 651      * that this method may use parser buffer to report white space without
 652      * copying characters to temporary buffer.
 653      */
 654     protected void bflash() throws SAXException {
 655         if (mBuffIdx >= 0) {
 656             //          Textual data has been read
 657             mHandCont.characters(mBuff, 0, (mBuffIdx + 1));
 658             mBuffIdx = -1;
 659         }
 660     }
 661 
 662     /**
 663      * Reports white space characters and empties the parser's buffer. This
 664      * method is called only if parser is going to return control to the main
 665      * loop. This means that this method may use parser buffer to report white
 666      * space without copying characters to temporary buffer.
 667      */
 668     protected void bflash_ws() throws SAXException {
 669         if (mBuffIdx >= 0) {
 670             // BUG: With additional info from DTD and xml:space attr [#2.10]
 671             // the following call can be supported:
 672             // mHandCont.ignorableWhitespace(mBuff, 0, (mBuffIdx + 1));
 673 
 674             //          Textual data has been read
 675             mHandCont.characters(mBuff, 0, (mBuffIdx + 1));
 676             mBuffIdx = -1;
 677         }
 678     }
 679 
 680     public boolean getFeature(String name) {
 681         throw new UnsupportedOperationException("Not supported yet.");
 682     }
 683 
 684     public void setFeature(String name, boolean value) {
 685         throw new UnsupportedOperationException("Not supported yet.");
 686     }
< prev index next >