< prev index next >

src/java.base/share/classes/jdk/internal/org/xml/sax/DTDHandler.java

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 2000, 2012, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this --- 1,7 ---- /* ! * Copyright (c) 2000, 2018, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this
*** 71,81 **** * @author David Megginson * @see org.xml.sax.XMLReader#setDTDHandler */ public interface DTDHandler { - /** * Receive notification of a notation declaration event. * * <p>It is up to the application to record the notation for later * reference, if necessary; --- 71,80 ----
*** 134,141 **** --- 133,184 ---- String publicId, String systemId, String notationName) throws SAXException; + // from SAX2 extension DeclHandler + /** + * Receive notification of the start of DTD declarations. + * + * The start/endDTD events appear within the start/endDocument events + * from ContentHandler. + * + * @param name The document type name. + * @param publicId The declared public identifier for the + * external DTD subset, or null if none was declared. + * @param systemId The declared system identifier for the + * external DTD subset, or null if none was declared. + * (Note that this is not resolved against the document + * base URI.) + * @throws SAXException the event receiver may throw an exception during processing + */ + default public void startDTD (String name, String publicId, String systemId) + throws SAXException + { + // no op + } + + + /** + * Receive notification of the end of DTD declarations. + * + * @throws SAXException the event receiver may throw an exception during processing + */ + default public void endDTD () throws SAXException + { + // no op + } + + // Custom API for the Properties + + /** + * Receive notification of the start of DTD internal subset. + * + * @throws SAXException the event receiver may throw an exception during processing + */ + default public void startInternalSub () throws SAXException + { + // no op + } } // end of DTDHandler.java
< prev index next >