Chapter 7. The I/O Subsystem

Table of Contents

Import/Export Handlers
yWays Default Handlers

This chapter contains a description of the IO subsystem. The IO subsystem handles the serialization of biochemical networks. The subsystem is located in the package yWays.io.

Import/Export Handlers

The interface ImportHandler defines an import filter for reaction nets. An import filter reads data from an InputStream and returns an instance of ReactionNetDiagram.

The interface ExportHandler defines an export filter for reaction nets. An export filter takes an instance of ReactionNetDiagram and serializes it to an OutputStream.

Both, ImportHandler and ExportHandler, are derived from the interface FileHandler which defines a file extension and a short description for a handler. The interface IOHandler defines a handler which is import and export handler at the same time.