public final class TemplateExport
extends java.lang.Object
Constructor and Description |
---|
TemplateExport(IBaseChart c) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getXML()
Returns all chart properties that are different from their default
values, in XML text format.
|
java.lang.String |
getXML(java.lang.Object value)
Returns all properties in "value" Object that are different from their
default values, in XML text format.
|
void |
toFile(java.lang.String fileName)
Writes all non-transient chart fields to a file using Java standard
serialization mechanism.
|
void |
toStream(java.io.OutputStream stream)
Writes all non-transient chart fields to a stream using Java standard
serialization mechanism.
|
void |
toXML(java.io.File file)
Stores all chart properties to a file in XML format using Java XMLEncoder
class.
|
void |
toXML(java.lang.Object value,
java.io.OutputStream stream)
Stores value object properties to stream, in XML text format using Java
XMLEncoder class.
|
void |
toXML(java.io.OutputStream stream)
Stores all chart properties to stream, in XML text format using Java
XMLEncoder class.
|
void |
toXML(java.lang.String fileName)
Stores all chart properties to a file in XML format using Java XMLEncoder
class.
|
public TemplateExport(IBaseChart c)
public java.lang.String getXML()
public java.lang.String getXML(java.lang.Object value)
value
- Objectpublic void toXML(java.io.File file) throws java.io.FileNotFoundException
file
- Filejava.io.FileNotFoundException
public void toXML(java.lang.String fileName) throws java.io.FileNotFoundException
fileName
- Stringjava.io.FileNotFoundException
public void toXML(java.io.OutputStream stream)
stream
- OutputStreampublic void toXML(java.lang.Object value, java.io.OutputStream stream)
value
- Objectstream
- OutputStreampublic void toFile(java.lang.String fileName) throws java.io.FileNotFoundException, java.io.IOException
fileName
- Stringjava.io.FileNotFoundException
java.io.IOException
public void toStream(java.io.OutputStream stream) throws java.io.IOException
stream
- OutputStreamjava.io.IOException