-
Notifications
You must be signed in to change notification settings - Fork 0
Serializer Plugin
#summary How to write Serializer plugins
A serializer serializes an object model to a stream of data. Among the default serializers are: IFC2x3, IfcXml, CityGML and others. Most serializers will output a textbased format but that is not required.
Serializer plugins must implement org.bimserver.plugins.serializers.SerializerPlugin interface {{{ public interface SerializerPlugin extends Plugin { Serializer createSerializer(); // The actual method that will create a serializer. Have a look at subclasses of EmfSerializer to see how to build one String getDefaultExtension(); // A default extension, the user can change this String getDefaultContentType(); // A default contentType, the user can change this } }}}
{{{ public interface Serializer { void init(IfcModelInterface model, ProjectInfo projectInfo, PluginManager pluginManager, IfcEngine ifcEngine) throws SerializerException; void writeToFile(File file) throws SerializerException; byte[] getBytes(); IfcModelInterface getModel(); InputStream getInputStream() throws IOException; void writeToOutputStream(OutputStream outputStream) throws SerializerException; } }}}
You can subclass EmfSerializer so you don't have to implement all methods.
Get Started
- Quick Guide
- Requirements Version 1.2
- Requirements Version 1.3
- Requirements Version 1.4
- Requirements Version 1.4 > 2015-09-12
- Requirements Version 1.5
- Download
- JAR Starter
- Setup
Deployment
- Ubuntu installation
- Windows installation
- Security
- Memory Usage
- More memory
- Performance statistics
- Large databases
Developers
- Service Interfaces
- Common functions
- Data Model
- Low Level Calls
- Endpoints
Clients
BIMServer Developers
- Plugins in 1.5
- Plugin Development
- Eclipse
- Eclipse Modeling Framework
- Embedding
- Terminology
- Database/Versioning
- IFC STEP Encoding
- Communication
- Global changes in 1.5
- Writing a service
- Services/Notifications
- BIMserver 1.5 Developers
- Extended data
- Extended data schema
- Object IDM
New developments
- New remote service interface
- Plugins new
- Deprecated
- New query language
- Visual query language
- Reorganizing BIMserver JavaScript API
General