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();
}
Aggregations