public class JavaWriter extends Object
Constructor and Description |
---|
JavaWriter()
Create a new reader.
|
Modifier and Type | Method and Description |
---|---|
static IObjectWriterHandler |
getObjectHandler()
Get the default Java reader.
|
static Set<TypeInfo> |
getTypeInfos()
Get the java type infos.
|
static Set |
joinTypeInfos(Set typeinfos)
Join sets of typeinfos.
|
static byte[] |
objectToByteArray(Object val,
ClassLoader classloader)
Convert to a byte array.
|
static byte[] |
objectToByteArray(Object val,
ClassLoader classloader,
IObjectWriterHandler handler)
Convert to a byte array.
|
static void |
objectToOutputStream(Object val,
OutputStream os,
ClassLoader classloader)
Write to output stream.
|
static void |
objectToOutputStream(Object val,
OutputStream os,
ClassLoader classloader,
IObjectWriterHandler handler)
Write to output stream.
|
static String |
objectToXML(Object val,
ClassLoader classloader)
Convert to a string.
|
static String |
objectToXML(Object val,
ClassLoader classloader,
IObjectWriterHandler handler)
Convert to a string.
|
public static Set joinTypeInfos(Set typeinfos)
typeinfos
- The user specific type infos.public static Set<TypeInfo> getTypeInfos()
public static String objectToXML(Object val, ClassLoader classloader)
public static byte[] objectToByteArray(Object val, ClassLoader classloader)
public static void objectToOutputStream(Object val, OutputStream os, ClassLoader classloader)
public static String objectToXML(Object val, ClassLoader classloader, IObjectWriterHandler handler)
public static byte[] objectToByteArray(Object val, ClassLoader classloader, IObjectWriterHandler handler)
public static void objectToOutputStream(Object val, OutputStream os, ClassLoader classloader, IObjectWriterHandler handler)
public static IObjectWriterHandler getObjectHandler()
Copyright © 2012. All Rights Reserved.