org.formulacompiler.runtime
Class FormulaRuntime

java.lang.Object
  extended by org.formulacompiler.runtime.FormulaRuntime
Direct Known Subclasses:
FormulaCompiler, FormulaDecompiler

public class FormulaRuntime
extends java.lang.Object

Static class defining factory methods for run-time-only elements of AFC. This class is extended by SpreadsheetCompiler which provides factory methods for compile-time elements.

Author:
peo
See Also:
FormulaCompiler, SpreadsheetCompiler

Field Summary
static int UNDEFINED_SCALE
          For BigDecimal types, indicates that no explicit scaling should be performed by the engine.
 
Method Summary
static Engine loadEngine(EngineLoader.Config _config, java.io.InputStream _stream)
          Like loadEngine(InputStream), but with full configuration options.
static Engine loadEngine(java.io.InputStream _stream)
          Returns a new engine deserialized by a registered engine loader (see register()) - it must have been saved using SaveableEngine.saveTo(java.io.OutputStream).
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UNDEFINED_SCALE

public static final int UNDEFINED_SCALE
For BigDecimal types, indicates that no explicit scaling should be performed by the engine.

See Also:
Constant Field Values
Method Detail

loadEngine

public static Engine loadEngine(java.io.InputStream _stream)
                         throws java.io.IOException,
                                EngineException
Returns a new engine deserialized by a registered engine loader (see register()) - it must have been saved using SaveableEngine.saveTo(java.io.OutputStream).

Parameters:
_stream - is an input stream. If it does not support the InputStream.mark(int) operation, it is automatically wrapped within a BufferedInputStream.
Returns:
The loaded engine.
Throws:
java.io.IOException
EngineException
See Also:
loadEngine(org.formulacompiler.runtime.EngineLoader.Config, InputStream)

loadEngine

public static Engine loadEngine(EngineLoader.Config _config,
                                java.io.InputStream _stream)
                         throws java.io.IOException,
                                EngineException
Like loadEngine(InputStream), but with full configuration options.

Parameters:
_config - is the engine loader configuration block.
_stream - is an input stream. If it does not support the InputStream.mark(int) operation, it is automatically wrapped within a BufferedInputStream.
Returns:
The loaded engine.
Throws:
java.io.IOException
EngineException
See Also:
loadEngine(InputStream)