public class SerializerImpl extends java.lang.Object implements Serializer
| 限定符和类型 | 字段和说明 |
|---|---|
static java.lang.String |
CHART_END_MARKER |
static java.lang.String |
CHART_START_MARKER |
| 限定符和类型 | 方法和说明 |
|---|---|
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.
|
public static final java.lang.String CHART_START_MARKER
public static final java.lang.String CHART_END_MARKER
public static final Serializer instance()
public void write(Chart cModel, java.io.OutputStream os) throws java.io.IOException
Serializerwrite 在接口中 SerializercModel - The model to be serialized os The OutputStream to which the model is to be serializedjava.io.IOExceptionpublic void write(Chart cModel, org.eclipse.emf.common.util.URI uri) throws java.io.IOException
Serializerwrite 在接口中 SerializercModel - The model to be serialized uri The URI to which the model is to be serializedjava.io.IOExceptionpublic java.io.ByteArrayOutputStream asXml(Chart cModel, boolean bStripHeaders) throws java.io.IOException
SerializerasXml 在接口中 SerializercModel - The model to be serialized bStripHeaders Specifies whether or not the headers are to be removed while
serializing the modeljava.io.IOExceptionpublic void savePreferences(ChartPreferences preferences, java.io.OutputStream os) throws java.io.IOException
SerializersavePreferences 在接口中 Serializerpreferences - The ChartPreferences object to be savedos - The OutputStream to which the preferences are to be writtenjava.io.IOExceptionpublic Chart read(java.io.InputStream is) throws java.io.IOException
Serializerread 在接口中 Serializerjava.io.IOExceptionpublic Chart read(org.eclipse.emf.common.util.URI uri) throws java.io.IOException
Serializerread 在接口中 Serializeruri - URI of the location holding the chart modeljava.io.IOExceptionpublic Chart readEmbedded(org.eclipse.emf.common.util.URI uri) throws java.io.IOException
SerializerreadEmbedded 在接口中 Serializeruri - URI of the location holding the embedded chart modeljava.io.IOExceptionpublic Chart fromXml(java.io.ByteArrayInputStream byais, boolean bStripHeaders) throws java.io.IOException
SerializerfromXml 在接口中 Serializerbyais - The ByteArrayInputStream holding the chart modelbStripHeaders - Specifies whether or not the headers were removed when the chart model was savedjava.io.IOExceptionpublic ChartPreferences loadPreferences(java.io.InputStream is) throws java.io.IOException
SerializerloadPreferences 在接口中 Serializeris - InputStream from which the chart preferences are to be readjava.io.IOExceptionCopyright © 2005-2008 Actuate Corp. All rights reserved.