public class JavaReader extends Object
Constructor and Description |
---|
JavaReader() |
Modifier and Type | Method and Description |
---|---|
static IObjectReaderHandler |
getObjectHandler()
Get the default Java reader.
|
static TypeInfoPathManager |
getPathManager()
Get the default Java reader.
|
static Set<TypeInfo> |
getTypeInfos()
Get the java type infos.
|
static Set<TypeInfo> |
joinTypeInfos(Set<TypeInfo> typeinfos)
Join sets of typeinfos.
|
static Object |
objectFromByteArray(byte[] val,
ClassLoader classloader)
Convert a byte array (of an xml) to an object.
|
static Object |
objectFromByteArray(byte[] val,
ClassLoader classloader,
TypeInfoPathManager manager,
IObjectReaderHandler handler)
Convert a byte array (of an xml) to an object.
|
static Object |
objectFromInputStream(InputStream val,
ClassLoader classloader)
Convert a byte array (of an xml) to an object.
|
static Object |
objectFromInputStream(InputStream val,
ClassLoader classloader,
TypeInfoPathManager manager,
IObjectReaderHandler handler)
Convert a byte array (of an xml) to an object.
|
static <T> T |
objectFromXML(String val,
ClassLoader classloader)
Convert an xml to an object.
|
static <T> T |
objectFromXML(String val,
ClassLoader classloader,
TypeInfoPathManager manager,
IObjectReaderHandler handler)
Convert an xml to an object.
|
public static Set<TypeInfo> joinTypeInfos(Set<TypeInfo> typeinfos)
typeinfos
- The user specific type infos.public static Set<TypeInfo> getTypeInfos()
public static <T> T objectFromXML(String val, ClassLoader classloader)
val
- The string value.public static Object objectFromByteArray(byte[] val, ClassLoader classloader)
val
- The byte array.classloader
- The class loader.public static Object objectFromInputStream(InputStream val, ClassLoader classloader)
val
- The input stream.classloader
- The class loader.public static <T> T objectFromXML(String val, ClassLoader classloader, TypeInfoPathManager manager, IObjectReaderHandler handler)
val
- The string value.public static Object objectFromByteArray(byte[] val, ClassLoader classloader, TypeInfoPathManager manager, IObjectReaderHandler handler)
val
- The byte array.classloader
- The class loader.public static Object objectFromInputStream(InputStream val, ClassLoader classloader, TypeInfoPathManager manager, IObjectReaderHandler handler)
val
- The input stream.classloader
- The class loader.public static TypeInfoPathManager getPathManager()
public static IObjectReaderHandler getObjectHandler()
Copyright © 2012. All Rights Reserved.