org.formulacompiler.compiler
Interface SaveableEngine

All Superinterfaces:
Engine

public interface SaveableEngine
extends Engine

Defines the saveTo(OutputStream) method for engines returned by an engine compiler. This allows you to save a compiled engine to persistent storage and then later re-instatiate it using FormulaRuntime.loadEngine(java.io.InputStream).

The Engine interface does not have save support so as not to burden the run-time-only support with it.

This interface is an API only. Do not implement it yourself.

Author:
peo

Method Summary
 void saveTo(java.io.OutputStream _stream)
          Saves a compiled engine to a stream.
 
Methods inherited from interface org.formulacompiler.runtime.Engine
getComputationFactory, getComputationFactory
 

Method Detail

saveTo

void saveTo(java.io.OutputStream _stream)
            throws java.io.IOException
Saves a compiled engine to a stream. You can later re-instantiate the engine from the stream using FormulaRuntime.loadEngine(java.io.InputStream). The engine is saved in the format of a compressed .jar file containing .class entries for all the classes generated by AFC.

Parameters:
_stream - to save the engine to.
Throws:
java.io.IOException