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 |
|---|---|
byte[] |
getBytes() |
protected int |
getExpressId(IdEObject object) |
InputStream |
getInputStream() |
protected EmfSerializer.Mode |
getMode() |
IfcModelInterface |
getModel() |
PackageMetaData |
getPackageMetaData() |
ProjectInfo |
getProjectInfo() |
void |
init(IfcModelInterface model,
ProjectInfo projectInfo,
boolean normalizeOids)
Initialize this serializer
|
boolean |
isNormalizeOids() |
protected void |
setMode(EmfSerializer.Mode mode) |
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, waitallowCachingprotected IfcModelInterface model
public void init(IfcModelInterface model, ProjectInfo projectInfo, boolean normalizeOids) throws SerializerException
Serializerinit in interface Serializermodel - The model that will be serializedprojectInfo - ProjectInformation that is stored in the BIMserver projectnormalizeOids - Whether to normalize the oids (usually means the oid will be regenerated from 1)SerializerExceptionpublic PackageMetaData getPackageMetaData()
public ProjectInfo getProjectInfo()
protected EmfSerializer.Mode getMode()
public boolean isNormalizeOids()
protected void setMode(EmfSerializer.Mode mode)
protected int getExpressId(IdEObject object)
public byte[] getBytes()
public InputStream getInputStream() throws IOException
IOExceptionprotected abstract boolean write(OutputStream outputStream, ProgressReporter progressReporter) throws SerializerException
SerializerExceptionpublic void writeToOutputStream(OutputStream outputStream, ProgressReporter progressReporter) throws SerializerException
writeToOutputStream in interface SerializeroutputStream - The stream to write toprogressReporter - An interface you can use to report progressSerializerExceptionpublic void writeToFile(Path file, ProgressReporter progressReporter) throws SerializerException
SerializerExceptionpublic IfcModelInterface getModel()
public boolean write(OutputStream out)
write in interface StreamingReaderCopyright © 2018 OpenSource BIM. All rights reserved.