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 Class |
getStaxInputFactory()
Get the XMLInputFactory implementation used normally by the current Java runtime as
standard.
|
static 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() |
static boolean |
is19()
Deprecated.
As of upcoming use
is9() |
static boolean |
is9() |
static boolean |
isAWTAvailable()
Checks if AWT is available.
|
static boolean |
isSQLAvailable()
Checks if SQL is available.
|
static boolean |
isSwingAvailable()
Checks if Swing is available.
|
Class |
loadClass(String name)
Deprecated.
As of 1.4.5 use
loadClassForName(String) |
Class |
loadClass(String name,
boolean initialize)
Deprecated.
As of 1.4.5 use
loadClassForName(String, boolean) |
static Class |
loadClassForName(String name)
Load a XStream class for the given name.
|
static Class |
loadClassForName(String name,
boolean initialize)
Load a XStream class for the given name.
|
static void |
main(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()
public static boolean is19()
is9()
public static boolean is9()
public static Class loadClassForName(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 Class loadClass(String name)
loadClassForName(String)
public static Class loadClassForName(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 Class loadClass(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 Class getStaxInputFactory() throws 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.
ClassNotFoundException
- if the standard class cannot be foundpublic static Class getStaxOutputFactory() throws 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.
ClassNotFoundException
- if the standard class cannot be foundpublic 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(String[] args)
Copyright © 2004–2017 XStream. All rights reserved.