30 import com.sun.org.apache.xerces.internal.xni.parser.XMLParserConfiguration;
31 import java.io.IOException;
32 import java.lang.ref.SoftReference;
33 import javax.xml.XMLConstants;
34 import javax.xml.transform.Result;
35 import javax.xml.transform.Source;
36 import javax.xml.transform.TransformerConfigurationException;
37 import javax.xml.transform.TransformerFactoryConfigurationError;
38 import javax.xml.transform.sax.SAXTransformerFactory;
39 import javax.xml.transform.sax.TransformerHandler;
40 import javax.xml.transform.stream.StreamResult;
41 import javax.xml.transform.stream.StreamSource;
42 import jdk.xml.internal.JdkXmlUtils;
43 import org.xml.sax.SAXException;
44
45 /**
46 * <p>A validator helper for <code>StreamSource</code>s.</p>
47 *
48 * @author Michael Glavassevich, IBM
49 * @author <a href="mailto:Sunitha.Reddy@Sun.com">Sunitha Reddy</a>
50 * @version $Id: StreamValidatorHelper.java,v 1.7 2010-11-01 04:40:08 joehw Exp $
51 */
52 final class StreamValidatorHelper implements ValidatorHelper {
53
54 // feature identifiers
55
56 /** Feature identifier: parser settings. */
57 private static final String PARSER_SETTINGS =
58 Constants.XERCES_FEATURE_PREFIX + Constants.PARSER_SETTINGS;
59
60 // property identifiers
61
62 /** Property identifier: entity resolver. */
63 private static final String ENTITY_RESOLVER =
64 Constants.XERCES_PROPERTY_PREFIX + Constants.ENTITY_RESOLVER_PROPERTY;
65
66 /** Property identifier: error handler. */
67 private static final String ERROR_HANDLER =
68 Constants.XERCES_PROPERTY_PREFIX + Constants.ERROR_HANDLER_PROPERTY;
69
70 /** Property identifier: error reporter. */
|
30 import com.sun.org.apache.xerces.internal.xni.parser.XMLParserConfiguration;
31 import java.io.IOException;
32 import java.lang.ref.SoftReference;
33 import javax.xml.XMLConstants;
34 import javax.xml.transform.Result;
35 import javax.xml.transform.Source;
36 import javax.xml.transform.TransformerConfigurationException;
37 import javax.xml.transform.TransformerFactoryConfigurationError;
38 import javax.xml.transform.sax.SAXTransformerFactory;
39 import javax.xml.transform.sax.TransformerHandler;
40 import javax.xml.transform.stream.StreamResult;
41 import javax.xml.transform.stream.StreamSource;
42 import jdk.xml.internal.JdkXmlUtils;
43 import org.xml.sax.SAXException;
44
45 /**
46 * <p>A validator helper for <code>StreamSource</code>s.</p>
47 *
48 * @author Michael Glavassevich, IBM
49 * @author <a href="mailto:Sunitha.Reddy@Sun.com">Sunitha Reddy</a>
50 */
51 final class StreamValidatorHelper implements ValidatorHelper {
52
53 // feature identifiers
54
55 /** Feature identifier: parser settings. */
56 private static final String PARSER_SETTINGS =
57 Constants.XERCES_FEATURE_PREFIX + Constants.PARSER_SETTINGS;
58
59 // property identifiers
60
61 /** Property identifier: entity resolver. */
62 private static final String ENTITY_RESOLVER =
63 Constants.XERCES_PROPERTY_PREFIX + Constants.ENTITY_RESOLVER_PROPERTY;
64
65 /** Property identifier: error handler. */
66 private static final String ERROR_HANDLER =
67 Constants.XERCES_PROPERTY_PREFIX + Constants.ERROR_HANDLER_PROPERTY;
68
69 /** Property identifier: error reporter. */
|