SMILA (incubation) API documentation

org.eclipse.smila.datamodel.tools
Class DatamodelSerializationUtils

java.lang.Object
  extended by org.eclipse.smila.datamodel.tools.DatamodelSerializationUtils

public final class DatamodelSerializationUtils
extends java.lang.Object

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

serialize2string

public static java.lang.String serialize2string(Id id)
Serialize2string.

Parameters:
id - the id
Returns:
the string

serialize2string

public static java.lang.String serialize2string(Record record)
Serialize2string.

Parameters:
record - the record
Returns:
the string

serialize2byteArray

public static byte[] serialize2byteArray(Record record)
Serialize2byte array.

Parameters:
record - the record
Returns:
the byte[]

serialize2stream

public static java.io.ByteArrayOutputStream serialize2stream(Record record)
Serialize to ByteArrayOutputStream.

Parameters:
record - the record
Returns:
the ByteArrayOutputStream

deserialize

public static Record deserialize(byte[] byteArray)
                          throws DatamodelDeserializationException
Deserialize.

Parameters:
byteArray - the byte array
Returns:
the record
Throws:
DatamodelDeserializationException - the datamodel deserialization exception

deserialize

public static Record deserialize(java.lang.String xmlString)
                          throws DatamodelDeserializationException
Deserialize.

Parameters:
xmlString - the xml string
Returns:
the record
Throws:
DatamodelDeserializationException - the datamodel deserialization exception

deserialize

public static Record deserialize(org.w3c.dom.Document document)
                          throws DatamodelDeserializationException
Deserialize.

Parameters:
document - the document
Returns:
the record
Throws:
DatamodelDeserializationException - the datamodel deserialization exception

getRecordParser

public static RecordParser getRecordParser()
Get the RecordParser.

Returns:
the RecordParser

getStaxWriterFactory

public static javax.xml.stream.XMLOutputFactory getStaxWriterFactory()
Get the XMLOutputFactory.

Returns:
the XMLOutputFactory

getStaxReaderFactory

public static javax.xml.stream.XMLInputFactory getStaxReaderFactory()
Get the XMLInputFactory.

Returns:
the XMLInputFactory

getRecordWriter

public static RecordWriter getRecordWriter()
Get the RecordWriter.

Returns:
the RecordWriter

getRecordReader

public static RecordReader getRecordReader()
Get the RecordReader.

Returns:
the RecordReader

getIdWriter

public static IdWriter getIdWriter()
Get the IdWriter.

Returns:
the IdWriter

getIdReader

public static IdReader getIdReader()
Get the IdReader.

Returns:
the IdReader

SMILA (incubation) API documentation