public class PropertiesXMLHelper
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected static TypeInfoPathManager |
pathmanager
The path manager.
|
protected static IObjectReaderHandler |
readerhandler
The reader handler.
|
static java.util.Set |
typeinfos
The type infos.
|
protected static IObjectWriterHandler |
writerhandler
The writer handler.
|
Constructor and Description |
---|
PropertiesXMLHelper() |
Modifier and Type | Method and Description |
---|---|
static IObjectReaderHandler |
getObjectReaderHandler()
Get the default Java reader.
|
static IObjectWriterHandler |
getObjectWriterHandler()
Get the default Java writer.
|
static TypeInfoPathManager |
getPathManager()
Get the default Java reader.
|
static <T> T |
read(java.io.InputStream is,
java.lang.ClassLoader classloader)
Convert an xml to an object.
|
static <T> T |
read(java.lang.String val,
java.lang.ClassLoader classloader)
Convert an xml to an object.
|
static java.lang.String |
write(java.lang.Object val,
java.lang.ClassLoader classloader)
Convert to a string.
|
static void |
write(java.lang.Object val,
java.io.OutputStream os,
java.lang.ClassLoader classloader)
Convert to a string.
|
public static final java.util.Set typeinfos
protected static volatile TypeInfoPathManager pathmanager
protected static volatile IObjectReaderHandler readerhandler
protected static volatile IObjectWriterHandler writerhandler
public static java.lang.String write(java.lang.Object val, java.lang.ClassLoader classloader)
public static void write(java.lang.Object val, java.io.OutputStream os, java.lang.ClassLoader classloader)
public static <T> T read(java.lang.String val, java.lang.ClassLoader classloader)
val
- The string value.public static <T> T read(java.io.InputStream is, java.lang.ClassLoader classloader)
val
- The string value.public static TypeInfoPathManager getPathManager()
public static IObjectReaderHandler getObjectReaderHandler()
public static IObjectWriterHandler getObjectWriterHandler()