Search in sources :

Example 1 with SerializationConversionContext

use of org.eclipse.xtext.nodemodel.serialization.SerializationConversionContext in project xtext-core by eclipse.

the class ResourceStorageWritable method writeNodeModel.

protected void writeNodeModel(final StorageAwareResource resource, final OutputStream outputStream) throws IOException {
    final DataOutputStream out = new DataOutputStream(outputStream);
    final SerializableNodeModel serializableNodeModel = new SerializableNodeModel(resource);
    final SerializationConversionContext conversionContext = new SerializationConversionContext(resource);
    serializableNodeModel.writeObjectData(out, conversionContext);
    out.flush();
}
Also used : DataOutputStream(java.io.DataOutputStream) SerializableNodeModel(org.eclipse.xtext.nodemodel.impl.SerializableNodeModel) SerializationConversionContext(org.eclipse.xtext.nodemodel.serialization.SerializationConversionContext)

Aggregations

DataOutputStream (java.io.DataOutputStream)1 SerializableNodeModel (org.eclipse.xtext.nodemodel.impl.SerializableNodeModel)1 SerializationConversionContext (org.eclipse.xtext.nodemodel.serialization.SerializationConversionContext)1