| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final Properties | cacheProps
Cache for properties in java.home/conf/jaxp.properties |
| pack-priv static volatile boolean | firstTime
Flag indicating whether java.home/conf/jaxp.properties has been read |
| public static final String |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static String | Returns: the name of the protocol if rejected, null otherwisethe Id of the URI systemId, String a list of allowed protocols separated by comma allowedProtocols, String keyword to indicate allowing any protocol accessAny)Check the protocol used in the systemId against allowed protocols |
| public static boolean | Returns: true if the file exists, false otherwisethe specified file f)Checks whether the file exists. |
| public static ClassLoader | Returns: the current thread's context class loader, or the system class loaderReturns the current thread's context class loader, or the system class loader if the context class loader is null. |
| public static String | |
| public static ClassLoader | |
| public static String | |
| public static FileInputStream | Returns: the FileInputStreamthe specified file file)Creates and returns a new FileInputStream from a file. |
| public static InputStream | Returns: the InputStreamthe URLConnection uc)Returns an InputStream from a URLConnection. |
| public static < the type of the property value T> T | Returns: the value of the property, or the default value if no system property is foundthe type of the property value type, String the name of the property propName, String the default value defValue)Reads JAXP system property in this order: system property, $java.home/conf/jaxp.properties if the system property is not specified |
| public static String | Returns: the value of the propertythe name of the property propName)Reads JAXP system property in this order: system property, $java.home/conf/jaxp.properties if the system property is not specified |
| public static ClassLoader | |
| public static URL | Returns: the resourcethe resource name name)Returns the resource by the name. |
| public static InputStream | Returns: the resource streamthe resource name name)Returns the resource as a stream. |
| public static InputStream | |
| public static ResourceBundle | Returns: a resource bundle for the given base name and the default localethe base name of the resource bundle, a fully qualified class name bundle)Gets a resource bundle using the specified base name, the default locale, and the caller's class loader. |
| public static ResourceBundle | Returns: a resource bundle for the given base name and localethe base name of the resource bundle, a fully qualified class name bundle, final Locale the locale for which a resource bundle is desired locale)Gets a resource bundle using the specified base name and locale, and the caller's class loader. |
| public static ClassLoader | |
| public static boolean | Returns: true if it is a directory, false otherwisethe file to be tested f)Tests whether the file denoted by this abstract pathname is a directory. |
| public static boolean | |
| public static boolean | Returns: true if the file exists, false otherwisethe file to be tested f)Tests whether the file exists. |
| private static boolean | Returns: true if the protocol is in the lista protocol protocol, String a list of allowed protocols allowedProtocols)Check if the protocol is in the allowed list of protocols. |
| public static String | Returns: the value of the specified property, null if the property is not foundthe specified property propName)Returns the value of the specified property from the Configuration file. |
| public static String | Returns: the value of the specified property, null if the property is not foundthe specified property propName, boolean a flag indicating whether to read stax.properties stax)Returns the value of the specified property from the Configuration file. |
| public static String | Returns: the file name onlya URI or file path input)Strips off path from a URI or file path. |
| cacheProps | back to summary |
|---|---|
| pack-priv static final Properties cacheProps Cache for properties in java.home/conf/jaxp.properties | |
| firstTime | back to summary |
|---|---|
| pack-priv static volatile boolean firstTime Flag indicating whether java.home/conf/jaxp.properties has been read | |
| NEWLINE | back to summary |
|---|---|
| public static final String NEWLINE | |
| SecuritySupport | back to summary |
|---|---|
| private SecuritySupport() | |
| checkAccess | back to summary |
|---|---|
| public static String checkAccess(String systemId, String allowedProtocols, String accessAny) throws IOException Check the protocol used in the systemId against allowed protocols | |
| doesFileExist | back to summary |
|---|---|
| public static boolean doesFileExist(final File f) Checks whether the file exists.
| |
| getClassLoader | back to summary |
|---|---|
| public static ClassLoader getClassLoader() Returns the current thread's context class loader, or the system class loader if the context class loader is null.
| |
| getClassSource | back to summary |
|---|---|
| public static String getClassSource(Class<?> cls) | |
| getContextClassLoader | back to summary |
|---|---|
| public static ClassLoader getContextClassLoader() | |
| getErrorMessage | back to summary |
|---|---|
| public static String getErrorMessage(Locale locale, String bundle, String key, Object[] arguments) | |
| getFileInputStream | back to summary |
|---|---|
| public static FileInputStream getFileInputStream(final File file) throws FileNotFoundException Creates and returns a new FileInputStream from a file.
| |
| getInputStream | back to summary |
|---|---|
| public static InputStream getInputStream(final URLConnection uc) throws IOException Returns an InputStream from a URLConnection.
| |
| getJAXPSystemProperty | back to summary |
|---|---|
| public static <T> T getJAXPSystemProperty(Class<T> type, String propName, String defValue) Reads JAXP system property in this order: system property, $java.home/conf/jaxp.properties if the system property is not specified | |
| getJAXPSystemProperty | back to summary |
|---|---|
| public static String getJAXPSystemProperty(String propName) Reads JAXP system property in this order: system property, $java.home/conf/jaxp.properties if the system property is not specified | |
| getParentClassLoader | back to summary |
|---|---|
| public static ClassLoader getParentClassLoader(final ClassLoader cl) | |
| getResource | back to summary |
|---|---|
| public static URL getResource(final String name) Returns the resource by the name. | |
| getResourceAsStream | back to summary |
|---|---|
| public static InputStream getResourceAsStream(final String name) Returns the resource as a stream.
| |
| getResourceAsStream | back to summary |
|---|---|
| public static InputStream getResourceAsStream(final ClassLoader cl, final String name) | |
| getResourceBundle | back to summary |
|---|---|
| public static ResourceBundle getResourceBundle(String bundle) Gets a resource bundle using the specified base name, the default locale, and the caller's class loader.
| |
| getResourceBundle | back to summary |
|---|---|
| public static ResourceBundle getResourceBundle(final String bundle, final Locale locale) Gets a resource bundle using the specified base name and locale, and the caller's class loader.
| |
| getSystemClassLoader | back to summary |
|---|---|
| public static ClassLoader getSystemClassLoader() | |
| isDirectory | back to summary |
|---|---|
| public static boolean isDirectory(final File f) Tests whether the file denoted by this abstract pathname is a directory.
| |
| isFile | back to summary |
|---|---|
| public static boolean isFile(final File f) Tests whether the input is file.
| |
| isFileExists | back to summary |
|---|---|
| public static boolean isFileExists(final File f) Tests whether the file exists.
| |
| isProtocolAllowed | back to summary |
|---|---|
| private static boolean isProtocolAllowed(String protocol, String allowedProtocols) Check if the protocol is in the allowed list of protocols. The check is case-insensitive while ignoring whitespaces. | |
| readConfig | back to summary |
|---|---|
| public static String readConfig(String propName) Returns the value of the specified property from the Configuration file. The method reads the System Property "java.xml.config.file" for a custom configuration file, if doesn't exist, falls back to the JDK default that is typically located at $java.home/conf/jaxp.properties. | |
| readConfig | back to summary |
|---|---|
| public static String readConfig(String propName, boolean stax) Returns the value of the specified property from the Configuration file. The method reads the JDK default configuration that is typically located at $java.home/conf/jaxp.properties. On top of the default, if the System Property "java.xml.config.file" exists, the configuration file it points to will also be read. Any settings in it will then override those in the default. | |
| sanitizePath | back to summary |
|---|---|
| public static String sanitizePath(String input) Strips off path from a URI or file path. | |