|
SMILA (incubation) API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.smila.datamodel.tools.DatamodelSerializationUtils
public final class DatamodelSerializationUtils
The Class DatamodelSerializationUtils.
| Method Summary | |
|---|---|
static Record |
deserialize(byte[] byteArray)
Deserialize. |
static Record |
deserialize(org.w3c.dom.Document document)
Deserialize. |
static Record |
deserialize(java.lang.String xmlString)
Deserialize. |
static IdReader |
getIdReader()
Get the IdReader. |
static IdWriter |
getIdWriter()
Get the IdWriter. |
static RecordParser |
getRecordParser()
Get the RecordParser. |
static RecordReader |
getRecordReader()
Get the RecordReader. |
static RecordWriter |
getRecordWriter()
Get the RecordWriter. |
static javax.xml.stream.XMLInputFactory |
getStaxReaderFactory()
Get the XMLInputFactory. |
static javax.xml.stream.XMLOutputFactory |
getStaxWriterFactory()
Get the XMLOutputFactory. |
static byte[] |
serialize2byteArray(Record record)
Serialize2byte array. |
static java.io.ByteArrayOutputStream |
serialize2stream(Record record)
Serialize to ByteArrayOutputStream. |
static java.lang.String |
serialize2string(Id id)
Serialize2string. |
static java.lang.String |
serialize2string(Record record)
Serialize2string. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static java.lang.String serialize2string(Id id)
id - the id
public static java.lang.String serialize2string(Record record)
record - the record
public static byte[] serialize2byteArray(Record record)
record - the record
public static java.io.ByteArrayOutputStream serialize2stream(Record record)
record - the record
public static Record deserialize(byte[] byteArray)
throws DatamodelDeserializationException
byteArray - the byte array
DatamodelDeserializationException - the datamodel deserialization exception
public static Record deserialize(java.lang.String xmlString)
throws DatamodelDeserializationException
xmlString - the xml string
DatamodelDeserializationException - the datamodel deserialization exception
public static Record deserialize(org.w3c.dom.Document document)
throws DatamodelDeserializationException
document - the document
DatamodelDeserializationException - the datamodel deserialization exceptionpublic static RecordParser getRecordParser()
public static javax.xml.stream.XMLOutputFactory getStaxWriterFactory()
public static javax.xml.stream.XMLInputFactory getStaxReaderFactory()
public static RecordWriter getRecordWriter()
public static RecordReader getRecordReader()
public static IdWriter getIdWriter()
public static IdReader getIdReader()
|
SMILA (incubation) API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||