Constructor and Description |
---|
JVM()
Deprecated.
As of 1.4.5 use the static methods of JVM.
|
Modifier and Type | Method and Description |
---|---|
ReflectionProvider |
bestReflectionProvider()
Deprecated.
As of 1.4.5 use
newReflectionProvider() |
static boolean |
canCreateDerivedObjectOutputStream() |
static boolean |
canParseISO8601TimeZoneInDateFormat() |
static boolean |
canParseUTCDateFormat() |
void |
flushCache()
Deprecated.
As of 1.4.5 no functionality
|
static StringCodec |
getBase64Codec()
Get an available Base64 implementation.
|
static java.lang.Class |
getStaxInputFactory()
Get the XMLInputFactory implementation used normally by the current Java runtime as
standard.
|
static java.lang.Class |
getStaxOutputFactory()
Get the XMLOutputFactory implementation used normally by the current Java runtime as
standard.
|
static boolean |
hasOptimizedTreeMapPutAll()
Checks if TreeMap.putAll is optimized for SortedMap argument.
|
static boolean |
hasOptimizedTreeSetAddAll()
Checks if TreeSet.addAll is optimized for SortedSet argument.
|
static boolean |
is14()
Deprecated.
As of 1.4.4, minimal JDK version is 1.4 already
|
static boolean |
is15()
Deprecated.
As of 1.4.4, minimal JDK version will be 1.7 for next major release
|
static boolean |
is16()
Deprecated.
As of 1.4.4, minimal JDK version will be 1.7 for next major release
|
static boolean |
is17()
Deprecated.
As of 1.4.10, minimal JDK version will be 1.7 for next major release
|
static boolean |
is18()
Deprecated.
As of 1.4.11 use
isVersion(int) . |
static boolean |
is19()
Deprecated.
As of 1.4.10 use
isVersion(int) . |
static boolean |
is9()
Deprecated.
As of 1.4.11 use
isVersion(int) |
static boolean |
isAWTAvailable()
Checks if AWT is available.
|
static boolean |
isSQLAvailable()
Checks if SQL is available.
|
static boolean |
isSwingAvailable()
Checks if Swing is available.
|
static boolean |
isVersion(int version)
Checks current runtime against provided major Java version.
|
java.lang.Class |
loadClass(java.lang.String name)
Deprecated.
As of 1.4.5 use
loadClassForName(String) |
java.lang.Class |
loadClass(java.lang.String name,
boolean initialize)
Deprecated.
As of 1.4.5 use
loadClassForName(String, boolean) |
static java.lang.Class |
loadClassForName(java.lang.String name)
Load a XStream class for the given name.
|
static java.lang.Class |
loadClassForName(java.lang.String name,
boolean initialize)
Load a XStream class for the given name.
|
static void |
main(java.lang.String[] args) |
static ReflectionProvider |
newReflectionProvider()
Create the best matching ReflectionProvider.
|
static ReflectionProvider |
newReflectionProvider(FieldDictionary dictionary)
Create the best matching ReflectionProvider.
|
static boolean |
reverseFieldDefinition()
Deprecated.
As of 1.4.5
|
boolean |
supportsAWT()
Deprecated.
As of 1.4.5 use
isAWTAvailable() |
boolean |
supportsSQL()
Deprecated.
As of 1.4.5 use
isSQLAvailable() |
boolean |
supportsSwing()
Deprecated.
As of 1.4.5 use
isSwingAvailable() |
public static boolean is14()
public static boolean is15()
public static boolean is16()
public static boolean is17()
public static boolean is18()
isVersion(int)
.public static boolean is19()
isVersion(int)
.public static boolean is9()
isVersion(int)
public static boolean isVersion(int version)
version
- the requested major Java versionpublic static java.lang.Class loadClassForName(java.lang.String name)
This method is not meant to use loading arbitrary classes. It is used by XStream bootstrap until it is able to
use the user provided or the default ClassLoader
.
public java.lang.Class loadClass(java.lang.String name)
loadClassForName(String)
public static java.lang.Class loadClassForName(java.lang.String name, boolean initialize)
This method is not meant to use loading arbitrary classes. It is used by XStream bootstrap until it is able to
use the user provided or the default ClassLoader
.
public java.lang.Class loadClass(java.lang.String name, boolean initialize)
loadClassForName(String, boolean)
public static ReflectionProvider newReflectionProvider()
public static ReflectionProvider newReflectionProvider(FieldDictionary dictionary)
dictionary
- the FieldDictionary to use by the ReflectionProviderpublic static java.lang.Class getStaxInputFactory() throws java.lang.ClassNotFoundException
In contrast to XMLInputFactory.newFactory() this method will ignore any implementations provided with the system property javax.xml.stream.XMLInputFactory, implementations configured in lib/stax.properties or registered with the Service API.
java.lang.ClassNotFoundException
- if the standard class cannot be foundpublic static java.lang.Class getStaxOutputFactory() throws java.lang.ClassNotFoundException
In contrast to XMLOutputFactory.newFactory() this method will ignore any implementations provided with the system property javax.xml.stream.XMLOutputFactory, implementations configured in lib/stax.properties or registered with the Service API.
java.lang.ClassNotFoundException
- if the standard class cannot be foundpublic static StringCodec getBase64Codec()
public ReflectionProvider bestReflectionProvider()
newReflectionProvider()
public static boolean reverseFieldDefinition()
public static boolean isAWTAvailable()
public boolean supportsAWT()
isAWTAvailable()
public static boolean isSwingAvailable()
public boolean supportsSwing()
isSwingAvailable()
public static boolean isSQLAvailable()
public boolean supportsSQL()
isSQLAvailable()
public static boolean hasOptimizedTreeSetAddAll()
public static boolean hasOptimizedTreeMapPutAll()
public static boolean canParseUTCDateFormat()
public static boolean canParseISO8601TimeZoneInDateFormat()
public static boolean canCreateDerivedObjectOutputStream()
public void flushCache()
flushCache
in interface Caching
public static void main(java.lang.String[] args)
Copyright © 2004–2024 XStream. All rights reserved.