|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.birt.chart.model.impl.SerializerImpl
SerializerImpl
Field Summary | |
static java.lang.String |
CHART_END_MARKER
|
static java.lang.String |
CHART_START_MARKER
|
Method Summary | |
java.io.ByteArrayOutputStream |
asXml(Chart cModel,
boolean bStripHeaders)
Write the chart described by the model to a ByteArrayOutputStream. |
Chart |
fromXml(java.io.ByteArrayInputStream byais,
boolean bStripHeaders)
Reads the chart model from the ByteArrayInputStream. |
static Serializer |
instance()
|
ChartPreferences |
loadPreferences(java.io.InputStream is)
Loads the chart preferences from the InputStream. |
Chart |
read(java.io.InputStream is)
Reads the chart model from the given InputStream |
Chart |
read(org.eclipse.emf.common.util.URI uri)
Reads the chart model from the location defined by the URI provided. |
Chart |
readEmbedded(org.eclipse.emf.common.util.URI uri)
Reads the chart model embedded inside other XML content defined by the URI provided. |
void |
savePreferences(ChartPreferences preferences,
java.io.OutputStream os)
Saves the chart preferences to the specified OutputStream. |
void |
write(Chart cModel,
java.io.OutputStream os)
Write the chart described by the model to the OutputStream provided. |
void |
write(Chart cModel,
org.eclipse.emf.common.util.URI uri)
Write the chart described by the model to the location defined by the URI provided. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String CHART_START_MARKER
public static final java.lang.String CHART_END_MARKER
Method Detail |
public static final Serializer instance()
public void write(Chart cModel, java.io.OutputStream os) throws java.io.IOException
Serializer
write
in interface Serializer
cModel
- The model to be serialized os The OutputStream to which the model is to be serialized
java.io.IOException
public void write(Chart cModel, org.eclipse.emf.common.util.URI uri) throws java.io.IOException
Serializer
write
in interface Serializer
cModel
- The model to be serialized uri The URI to which the model is to be serialized
java.io.IOException
public java.io.ByteArrayOutputStream asXml(Chart cModel, boolean bStripHeaders) throws java.io.IOException
Serializer
asXml
in interface Serializer
cModel
- The model to be serialized bStripHeaders Specifies whether or not the headers are to be removed while
serializing the model
java.io.IOException
public void savePreferences(ChartPreferences preferences, java.io.OutputStream os) throws java.io.IOException
Serializer
savePreferences
in interface Serializer
preferences
- The ChartPreferences object to be savedos
- The OutputStream to which the preferences are to be written
java.io.IOException
public Chart read(java.io.InputStream is) throws java.io.IOException
Serializer
read
in interface Serializer
java.io.IOException
public Chart read(org.eclipse.emf.common.util.URI uri) throws java.io.IOException
Serializer
read
in interface Serializer
uri
- URI of the location holding the chart model
java.io.IOException
public Chart readEmbedded(org.eclipse.emf.common.util.URI uri) throws java.io.IOException
Serializer
readEmbedded
in interface Serializer
uri
- URI of the location holding the embedded chart model
java.io.IOException
public Chart fromXml(java.io.ByteArrayInputStream byais, boolean bStripHeaders) throws java.io.IOException
Serializer
fromXml
in interface Serializer
byais
- The ByteArrayInputStream holding the chart modelbStripHeaders
- Specifies whether or not the headers were removed when the chart model was saved
java.io.IOException
public ChartPreferences loadPreferences(java.io.InputStream is) throws java.io.IOException
Serializer
loadPreferences
in interface Serializer
is
- InputStream from which the chart preferences are to be read
java.io.IOException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |