1 /* 2 * reserved comment block 3 * DO NOT REMOVE OR ALTER! 4 */ 5 /* 6 * Copyright 2001, 2002,2004 The Apache Software Foundation. 7 * 8 * Licensed under the Apache License, Version 2.0 (the "License"); 9 * you may not use this file except in compliance with the License. 10 * You may obtain a copy of the License at 11 * 12 * http://www.apache.org/licenses/LICENSE-2.0 13 * 14 * Unless required by applicable law or agreed to in writing, software 15 * distributed under the License is distributed on an "AS IS" BASIS, 16 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 * See the License for the specific language governing permissions and 18 * limitations under the License. 19 */ 20 21 package com.sun.org.apache.xerces.internal.xni.parser; 22 23 import java.io.IOException; 24 import java.util.Locale; 25 26 import com.sun.org.apache.xerces.internal.xni.XMLDocumentHandler; 27 import com.sun.org.apache.xerces.internal.xni.XMLDTDHandler; 28 import com.sun.org.apache.xerces.internal.xni.XMLDTDContentModelHandler; 29 import com.sun.org.apache.xerces.internal.xni.XNIException; 30 233 * @param entityResolver The new entity resolver. 234 */ 235 public void setEntityResolver(XMLEntityResolver entityResolver); 236 237 /** Returns the registered entity resolver. */ 238 public XMLEntityResolver getEntityResolver(); 239 240 /** 241 * Set the locale to use for messages. 242 * 243 * @param locale The locale object to use for localization of messages. 244 * 245 * @exception XNIException Thrown if the parser does not support the 246 * specified locale. 247 */ 248 public void setLocale(Locale locale) throws XNIException; 249 250 /** Returns the locale. */ 251 public Locale getLocale(); 252 253 } // interface XMLParserConfiguration | 1 /* 2 * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved. 3 */ 4 /* 5 * Licensed to the Apache Software Foundation (ASF) under one or more 6 * contributor license agreements. See the NOTICE file distributed with 7 * this work for additional information regarding copyright ownership. 8 * The ASF licenses this file to You under the Apache License, Version 2.0 9 * (the "License"); you may not use this file except in compliance with 10 * the License. You may obtain a copy of the License at 11 * 12 * http://www.apache.org/licenses/LICENSE-2.0 13 * 14 * Unless required by applicable law or agreed to in writing, software 15 * distributed under the License is distributed on an "AS IS" BASIS, 16 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 * See the License for the specific language governing permissions and 18 * limitations under the License. 19 */ 20 21 package com.sun.org.apache.xerces.internal.xni.parser; 22 23 import java.io.IOException; 24 import java.util.Locale; 25 26 import com.sun.org.apache.xerces.internal.xni.XMLDocumentHandler; 27 import com.sun.org.apache.xerces.internal.xni.XMLDTDHandler; 28 import com.sun.org.apache.xerces.internal.xni.XMLDTDContentModelHandler; 29 import com.sun.org.apache.xerces.internal.xni.XNIException; 30 233 * @param entityResolver The new entity resolver. 234 */ 235 public void setEntityResolver(XMLEntityResolver entityResolver); 236 237 /** Returns the registered entity resolver. */ 238 public XMLEntityResolver getEntityResolver(); 239 240 /** 241 * Set the locale to use for messages. 242 * 243 * @param locale The locale object to use for localization of messages. 244 * 245 * @exception XNIException Thrown if the parser does not support the 246 * specified locale. 247 */ 248 public void setLocale(Locale locale) throws XNIException; 249 250 /** Returns the locale. */ 251 public Locale getLocale(); 252 253 /** 254 * Resumes the parsing process that has been stopped by the {@link #stop()} 255 * method. The method will simply return if parsing is not stopped. 256 * @return true if the parsing process can be stopped, false otherwise 257 * @see javax.xml.parsers.SAXParser 258 */ 259 public boolean stop(); 260 261 /** 262 * Resumes the parsing process that has been stopped by the {@link #stop()} 263 * method. The method will simply return if parsing is not stopped. 264 * @return true if the parsing process is resumed successfully, false 265 * otherwise 266 * @see javax.xml.parsers.SAXParser 267 */ 268 public boolean resume(); 269 } // interface XMLParserConfiguration |