public class JavaWriter
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected static IObjectWriterHandler |
handler
The object handler.
|
protected static AWriter |
writer
The static writer instance.
|
Constructor and Description |
---|
JavaWriter()
Create a new reader.
|
Modifier and Type | Method and Description |
---|---|
static IObjectWriterHandler |
getObjectHandler()
Get the default Java reader.
|
static java.util.Set<TypeInfo> |
getTypeInfos()
Get the java type infos.
|
static java.util.Set |
joinTypeInfos(java.util.Set typeinfos)
Join sets of typeinfos.
|
static byte[] |
objectToByteArray(java.lang.Object val,
java.lang.ClassLoader classloader)
Convert to a byte array.
|
static byte[] |
objectToByteArray(java.lang.Object val,
java.lang.ClassLoader classloader,
IObjectWriterHandler handler)
Convert to a byte array.
|
static byte[] |
objectToByteArray(java.lang.Object val,
java.lang.String encoding,
java.lang.ClassLoader classloader,
IObjectWriterHandler handler)
Convert to a byte array.
|
static void |
objectToOutputStream(java.lang.Object val,
java.io.OutputStream os,
java.lang.ClassLoader classloader)
Write to output stream.
|
static void |
objectToOutputStream(java.lang.Object val,
java.io.OutputStream os,
java.lang.ClassLoader classloader,
IObjectWriterHandler handler)
Write to output stream.
|
static java.lang.String |
objectToXML(java.lang.Object val,
java.lang.ClassLoader classloader)
Convert to a string.
|
static java.lang.String |
objectToXML(java.lang.Object val,
java.lang.ClassLoader classloader,
IObjectWriterHandler handler)
Convert to a string.
|
protected static volatile AWriter writer
protected static volatile IObjectWriterHandler handler
public static java.util.Set joinTypeInfos(java.util.Set typeinfos)
typeinfos
- The user specific type infos.public static java.util.Set<TypeInfo> getTypeInfos()
public static java.lang.String objectToXML(java.lang.Object val, java.lang.ClassLoader classloader)
public static byte[] objectToByteArray(java.lang.Object val, java.lang.ClassLoader classloader)
public static void objectToOutputStream(java.lang.Object val, java.io.OutputStream os, java.lang.ClassLoader classloader)
public static java.lang.String objectToXML(java.lang.Object val, java.lang.ClassLoader classloader, IObjectWriterHandler handler)
public static byte[] objectToByteArray(java.lang.Object val, java.lang.ClassLoader classloader, IObjectWriterHandler handler)
public static byte[] objectToByteArray(java.lang.Object val, java.lang.String encoding, java.lang.ClassLoader classloader, IObjectWriterHandler handler)
public static void objectToOutputStream(java.lang.Object val, java.io.OutputStream os, java.lang.ClassLoader classloader, IObjectWriterHandler handler)
public static IObjectWriterHandler getObjectHandler()