Skip to content

Latest commit

 

History

History
18 lines (15 loc) · 713 Bytes

Deserializer-Plugin.md

File metadata and controls

18 lines (15 loc) · 713 Bytes

To deserialize a stream of data to an object model.

public interface DeserializerPlugin extends Plugin {
	Deserializer createDeserializer(PluginConfiguration pluginConfiguration);
	boolean canHandleExtension(String extension);
}
public interface Deserializer {
	void init(SchemaDefinition schemaDefinition);
	IfcModelInterface read(File file) throws DeserializeException;
	IfcModelInterface read(InputStream inputStream, String fileName, long fileSize) throws DeserializeException;
}

You can subclass EmfDeserializer so you don't have to implement all methods.