Package jetbrains.mps.persistence.binary
Class BinaryPersistence
- java.lang.Object
 - 
- jetbrains.mps.persistence.binary.BinaryPersistence
 
 
- 
public final class BinaryPersistence extends Object
 
- 
- 
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Map<String,String>getDigestMap(SModel model, MetaModelInfoProvider mmiProvider)static SModelDatagetModelData(InputStream input)static voidindex(InputStream content, IndexAwareModelFactory.Callback consumer)static SModelHeaderreadHeader(StreamDataSource source)static ModelLoadResultreadModel(SModelHeader header, StreamDataSource source, boolean interfaceOnly)static voidwriteModel(SModel model, OutputStream stream)static voidwriteModel(SModel model, StreamDataSource dataSource) 
 - 
 
- 
- 
Method Detail
- 
readHeader
public static SModelHeader readHeader(@NotNull StreamDataSource source) throws ModelReadException
- Throws:
 ModelReadException
 
- 
readModel
public static ModelLoadResult readModel(@NotNull SModelHeader header, @NotNull StreamDataSource source, boolean interfaceOnly) throws ModelReadException
- Throws:
 ModelReadException
 
- 
writeModel
public static void writeModel(@NotNull SModel model, @NotNull StreamDataSource dataSource) throws IOException
- Throws:
 IOException
 
- 
writeModel
public static void writeModel(@NotNull SModel model, @NotNull OutputStream stream) throws IOException
- Throws:
 IOException
 
- 
getDigestMap
public static Map<String,String> getDigestMap(SModel model, @Nullable MetaModelInfoProvider mmiProvider)
 
- 
index
public static void index(InputStream content, IndexAwareModelFactory.Callback consumer) throws IOException
- Throws:
 IOException
 
- 
getModelData
public static SModelData getModelData(InputStream input) throws IOException
- Throws:
 IOException
 
 - 
 
 -