Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 220 for parsers (0.06 sec)

  1. src/main/java/org/codelibs/core/xml/DocumentBuilderFactoryUtil.java

     * governing permissions and limitations under the License.
     */
    package org.codelibs.core.xml;
    
    import javax.xml.XMLConstants;
    import javax.xml.parsers.DocumentBuilder;
    import javax.xml.parsers.DocumentBuilderFactory;
    import javax.xml.parsers.ParserConfigurationException;
    
    import org.codelibs.core.exception.ParserConfigurationRuntimeException;
    import org.codelibs.core.log.Logger;
    
    /**
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/core/xml/SAXParserFactoryUtilTest.java

            SAXParserFactoryUtil.setXIncludeAware(spf, true);
            spf.setNamespaceAware(true);
            final SAXParser parser = SAXParserFactoryUtil.newSAXParser(spf);
    
            final InputSource is = new InputSource(ResourceUtil.getResourceAsStream("org/codelibs/core/xml/include.xml"));
            is.setSystemId("include.xml");
            parser.parse(is, new DefaultHandler() {
    
                @Override
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/core/xml/SAXParserFactoryUtil.java

    import static org.codelibs.core.misc.AssertionUtil.assertArgumentNotNull;
    
    import java.lang.reflect.Method;
    
    import javax.xml.XMLConstants;
    import javax.xml.parsers.ParserConfigurationException;
    import javax.xml.parsers.SAXParser;
    import javax.xml.parsers.SAXParserFactory;
    
    import org.codelibs.core.exception.ParserConfigurationRuntimeException;
    import org.codelibs.core.exception.SAXRuntimeException;
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  4. fess-crawler/src/main/java/org/codelibs/fess/crawler/util/XmlUtil.java

                spfactory.setFeature(Constants.FEATURE_EXTERNAL_PARAMETER_ENTITIES, false);
                // create a sax parser
                final SAXParser parser = spfactory.newSAXParser();
                try {
                    parser.setProperty(XMLConstants.ACCESS_EXTERNAL_DTD, StringUtil.EMPTY);
                    parser.setProperty(XMLConstants.ACCESS_EXTERNAL_SCHEMA, StringUtil.EMPTY);
                } catch (final Exception e) {
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/core/exception/ParserConfigurationRuntimeException.java

     * governing permissions and limitations under the License.
     */
    package org.codelibs.core.exception;
    
    import static org.codelibs.core.collection.ArrayUtil.asArray;
    
    import javax.xml.parsers.ParserConfigurationException;
    
    /**
     * {@link ParserConfigurationException}をラップする例外です。
     *
     * @author higa
     */
    public class ParserConfigurationRuntimeException extends ClRuntimeException {
    
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/ds/DataStoreFactory.java

    import java.util.LinkedHashMap;
    import java.util.List;
    import java.util.Locale;
    import java.util.Map;
    import java.util.Set;
    import java.util.stream.Collectors;
    
    import javax.xml.parsers.DocumentBuilder;
    import javax.xml.parsers.DocumentBuilderFactory;
    
    import org.apache.logging.log4j.LogManager;
    import org.apache.logging.log4j.Logger;
    import org.codelibs.core.lang.StringUtil;
    import org.codelibs.fess.Constants;
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/core/xml/DomUtilTest.java

     * either express or implied. See the License for the specific language
     * governing permissions and limitations under the License.
     */
    package org.codelibs.core.xml;
    
    import javax.xml.parsers.DocumentBuilder;
    
    import junit.framework.TestCase;
    
    import org.codelibs.core.io.ResourceUtil;
    import org.w3c.dom.Document;
    import org.w3c.dom.Element;
    
    /**
     * @author higa
     *
     */
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/core/xml/SAXParserUtil.java

         *
         * @param parser
         *            プロパティを設定する{@link SAXParser}。{@literal null}であってはいけません
         * @param name
         *            設定されるプロパティの名前。{@literal null}や空文字列であってはいけません
         * @param value
         *            設定されるプロパティの値
         */
        public static void setProperty(final SAXParser parser, final String name, final String value) {
            assertArgumentNotNull("parser", parser);
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  9. fess-crawler/src/main/java/org/codelibs/fess/crawler/helper/SitemapsHelper.java

                spfactory.setFeature(Constants.FEATURE_EXTERNAL_PARAMETER_ENTITIES, false);
                final SAXParser parser = spfactory.newSAXParser();
                disableExternalResources(parser);
                parser.parse(in, handler);
            } catch (final Exception e) {
                throw new SitemapsException("Could not parse XML Sitemaps.", e);
            }
            return handler.getSitemapSet();
        }
    
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Sat Oct 12 01:40:57 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/core/xml/DocumentBuilderUtil.java

         *            入力ストリーム。{@literal null}であってはいけません
         * @return {@link Document}
         */
        public static Document parse(final DocumentBuilder builder, final InputStream is) {
            assertArgumentNotNull("builder", builder);
            assertArgumentNotNull("is", is);
    
            try {
                return builder.parse(is);
            } catch (final SAXException e) {
                throw new SAXRuntimeException(e);
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 1.8K bytes
    - Viewed (0)
Back to top