Class ResourceStorageWritable
- java.lang.Object
-
- org.eclipse.xtext.resource.persistence.ResourceStorageWritable
-
public class ResourceStorageWritable extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description ResourceStorageWritable(java.io.OutputStream out, boolean storeNodeModel)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidbeforeSaveEObject(org.eclipse.emf.ecore.InternalEObject object, org.eclipse.emf.ecore.resource.impl.BinaryResourceImpl.EObjectOutputStream writable)protected voidconvertExternalURIsToPortableURIs(SerializableResourceDescription description, StorageAwareResource resource)protected voidhandleSaveEObject(org.eclipse.emf.ecore.InternalEObject object, org.eclipse.emf.ecore.resource.impl.BinaryResourceImpl.EObjectOutputStream out)protected voidwriteContents(StorageAwareResource storageAwareResource, java.io.OutputStream outputStream)protected voidwriteEntries(StorageAwareResource resource, java.util.zip.ZipOutputStream zipOut)Write entries into the storage.protected voidwriteNodeModel(StorageAwareResource resource, java.io.OutputStream outputStream)voidwriteResource(StorageAwareResource resource)protected voidwriteResourceDescription(StorageAwareResource resource, java.io.OutputStream outputStream)
-
-
-
Method Detail
-
writeResource
public void writeResource(StorageAwareResource resource) throws java.io.IOException
- Throws:
java.io.IOException
-
writeEntries
protected void writeEntries(StorageAwareResource resource, java.util.zip.ZipOutputStream zipOut) throws java.io.IOException
Write entries into the storage. Overriding methods should first delegate to super before adding their own entries.- Throws:
java.io.IOException
-
writeContents
protected void writeContents(StorageAwareResource storageAwareResource, java.io.OutputStream outputStream) throws java.io.IOException
- Throws:
java.io.IOException
-
beforeSaveEObject
protected void beforeSaveEObject(org.eclipse.emf.ecore.InternalEObject object, org.eclipse.emf.ecore.resource.impl.BinaryResourceImpl.EObjectOutputStream writable) throws java.io.IOException- Throws:
java.io.IOException
-
handleSaveEObject
protected void handleSaveEObject(org.eclipse.emf.ecore.InternalEObject object, org.eclipse.emf.ecore.resource.impl.BinaryResourceImpl.EObjectOutputStream out) throws java.io.IOException- Throws:
java.io.IOException
-
writeResourceDescription
protected void writeResourceDescription(StorageAwareResource resource, java.io.OutputStream outputStream) throws java.io.IOException
- Throws:
java.io.IOException
-
convertExternalURIsToPortableURIs
protected void convertExternalURIsToPortableURIs(SerializableResourceDescription description, StorageAwareResource resource)
-
writeNodeModel
protected void writeNodeModel(StorageAwareResource resource, java.io.OutputStream outputStream) throws java.io.IOException
- Throws:
java.io.IOException
-
-