< prev index next >

src/java.xml/share/classes/org/xml/sax/helpers/XMLFilterImpl.java

Print this page


   1 /*
   2  * Copyright (c) 2000, 2019, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.  Oracle designates this
   8  * particular file as subject to the "Classpath" exception as provided
   9  * by Oracle in the LICENSE file that accompanied this code.
  10  *
  11  * This code is distributed in the hope that it will be useful, but WITHOUT
  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any


  75      * Construct an empty XML filter, with no parent.
  76      *
  77      * <p>This filter will have no parent: you must assign a parent
  78      * before you start a parse or do any configuration with
  79      * setFeature or setProperty, unless you use this as a pure event
  80      * consumer rather than as an {@link XMLReader}.</p>
  81      *
  82      * @see org.xml.sax.XMLReader#setFeature
  83      * @see org.xml.sax.XMLReader#setProperty
  84      * @see #setParent
  85      */
  86     public XMLFilterImpl ()
  87     {
  88         super();
  89     }
  90 
  91 
  92     /**
  93      * Construct an XML filter with the specified parent.
  94      *

  95      * @see #setParent
  96      * @see #getParent
  97      */
  98     public XMLFilterImpl (XMLReader parent)
  99     {
 100         super();
 101         setParent(parent);
 102     }
 103 
 104 
 105 
 106     ////////////////////////////////////////////////////////////////////
 107     // Implementation of org.xml.sax.XMLFilter.
 108     ////////////////////////////////////////////////////////////////////
 109 
 110 
 111     /**
 112      * Set the parent reader.
 113      *
 114      * <p>This is the {@link org.xml.sax.XMLReader XMLReader} from which


   1 /*
   2  * Copyright (c) 2000, 2020, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.  Oracle designates this
   8  * particular file as subject to the "Classpath" exception as provided
   9  * by Oracle in the LICENSE file that accompanied this code.
  10  *
  11  * This code is distributed in the hope that it will be useful, but WITHOUT
  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any


  75      * Construct an empty XML filter, with no parent.
  76      *
  77      * <p>This filter will have no parent: you must assign a parent
  78      * before you start a parse or do any configuration with
  79      * setFeature or setProperty, unless you use this as a pure event
  80      * consumer rather than as an {@link XMLReader}.</p>
  81      *
  82      * @see org.xml.sax.XMLReader#setFeature
  83      * @see org.xml.sax.XMLReader#setProperty
  84      * @see #setParent
  85      */
  86     public XMLFilterImpl ()
  87     {
  88         super();
  89     }
  90 
  91 
  92     /**
  93      * Construct an XML filter with the specified parent.
  94      *
  95      * @param parent the specified parent
  96      * @see #setParent
  97      * @see #getParent
  98      */
  99     public XMLFilterImpl (XMLReader parent)
 100     {
 101         super();
 102         setParent(parent);
 103     }
 104 
 105 
 106 
 107     ////////////////////////////////////////////////////////////////////
 108     // Implementation of org.xml.sax.XMLFilter.
 109     ////////////////////////////////////////////////////////////////////
 110 
 111 
 112     /**
 113      * Set the parent reader.
 114      *
 115      * <p>This is the {@link org.xml.sax.XMLReader XMLReader} from which


< prev index next >