Modifier and Type | Field and Description |
---|---|
static String |
XML_INCLUDE_FIELDS
Constant for indicating if public fields should be written.
|
Constructor and Description |
---|
AWriter() |
Modifier and Type | Method and Description |
---|---|
static byte[] |
objectToByteArray(AWriter writer,
Object val,
ClassLoader classloader,
IObjectWriterHandler handler)
Convert to a byte array.
|
static byte[] |
objectToByteArray(AWriter writer,
Object val,
ClassLoader classloader,
Object context,
IObjectWriterHandler handler)
Convert to a byte array.
|
static void |
objectToOutputStream(AWriter writer,
Object val,
OutputStream os,
ClassLoader classloader,
Object context,
IObjectWriterHandler handler)
Write to output stream.
|
static String |
objectToXML(AWriter writer,
Object val,
ClassLoader classloader,
IObjectWriterHandler handler)
Convert to a string.
|
static String |
objectToXML(AWriter writer,
Object val,
ClassLoader classloader,
Object context,
IObjectWriterHandler handler)
Convert to a string.
|
void |
write(IObjectWriterHandler handler,
Object object,
OutputStream out,
ClassLoader classloader,
Object context)
Write the properties to an xml.
|
abstract void |
write(IObjectWriterHandler handler,
Object object,
String encoding,
OutputStream out,
ClassLoader classloader,
Object context)
Write the properties to an xml.
|
public static final String XML_INCLUDE_FIELDS
public void write(IObjectWriterHandler handler, Object object, OutputStream out, ClassLoader classloader, Object context) throws Exception
input
- The input stream.classloader
- The classloader.context
- The context.Exception
public abstract void write(IObjectWriterHandler handler, Object object, String encoding, OutputStream out, ClassLoader classloader, Object context) throws Exception
input
- The input stream.classloader
- The classloader.context
- The context.Exception
public static String objectToXML(AWriter writer, Object val, ClassLoader classloader, IObjectWriterHandler handler)
public static String objectToXML(AWriter writer, Object val, ClassLoader classloader, Object context, IObjectWriterHandler handler)
public static byte[] objectToByteArray(AWriter writer, Object val, ClassLoader classloader, IObjectWriterHandler handler)
public static byte[] objectToByteArray(AWriter writer, Object val, ClassLoader classloader, Object context, IObjectWriterHandler handler)
public static void objectToOutputStream(AWriter writer, Object val, OutputStream os, ClassLoader classloader, Object context, IObjectWriterHandler handler)
Copyright © 2013. All Rights Reserved.