public abstract class EmfSerializer extends Object implements Serializer, StreamingReader
| Modifier and Type | Class and Description |
|---|---|
protected static class |
EmfSerializer.Mode |
| Modifier and Type | Field and Description |
|---|---|
protected IfcModelInterface |
model |
| Constructor and Description |
|---|
EmfSerializer() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
allowCaching() |
byte[] |
getBytes() |
protected int |
getExpressId(IdEObject object) |
InputStream |
getInputStream() |
protected EmfSerializer.Mode |
getMode() |
IfcModelInterface |
getModel() |
PackageMetaData |
getPackageMetaData() |
PluginManagerInterface |
getPluginManager() |
ProjectInfo |
getProjectInfo() |
void |
init(IfcModelInterface model,
ProjectInfo projectInfo,
PluginManagerInterface pluginManager,
PackageMetaData packageMetaData,
boolean normalizeOids) |
boolean |
isNormalizeOids() |
protected void |
setMode(EmfSerializer.Mode mode) |
void |
setPluginManager(PluginManagerInterface pluginManager) |
boolean |
write(OutputStream out) |
protected abstract boolean |
write(OutputStream outputStream,
ProgressReporter progressReporter) |
void |
writeToFile(Path file,
ProgressReporter progressReporter) |
void |
writeToOutputStream(OutputStream outputStream,
ProgressReporter progressReporter) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitresetprotected IfcModelInterface model
public void init(IfcModelInterface model, ProjectInfo projectInfo, PluginManagerInterface pluginManager, PackageMetaData packageMetaData, boolean normalizeOids) throws SerializerException
init in interface SerializerSerializerExceptionpublic PackageMetaData getPackageMetaData()
public boolean allowCaching()
allowCaching in interface Serializerpublic ProjectInfo getProjectInfo()
protected EmfSerializer.Mode getMode()
public boolean isNormalizeOids()
protected void setMode(EmfSerializer.Mode mode)
protected int getExpressId(IdEObject object)
public byte[] getBytes()
getBytes in interface Serializerpublic InputStream getInputStream() throws IOException
getInputStream in interface SerializerIOExceptionprotected abstract boolean write(OutputStream outputStream, ProgressReporter progressReporter) throws SerializerException
SerializerExceptionpublic void writeToOutputStream(OutputStream outputStream, ProgressReporter progressReporter) throws SerializerException
writeToOutputStream in interface SerializerSerializerExceptionpublic void writeToFile(Path file, ProgressReporter progressReporter) throws SerializerException
writeToFile in interface SerializerSerializerExceptionpublic IfcModelInterface getModel()
getModel in interface Serializerpublic void setPluginManager(PluginManagerInterface pluginManager)
public PluginManagerInterface getPluginManager()
public boolean write(OutputStream out)
write in interface StreamingReaderCopyright © 2016 OpenSource BIM. All rights reserved.