sisc.ser
Class SLL2Serializer

java.lang.Object
  extended by sisc.ser.BerEncoding
      extended by sisc.ser.SerializerImpl
          extended by sisc.ser.SLL2Serializer
All Implemented Interfaces:
java.io.DataOutput, java.io.ObjectOutput, Serializer
Direct Known Subclasses:
BlockSerializer, StreamSerializer

public abstract class SLL2Serializer
extends SerializerImpl


Field Summary
 
Fields inherited from class sisc.ser.SerializerImpl
ctx, datout
 
Constructor Summary
protected SLL2Serializer(AppContext ctx, java.io.ObjectOutput out)
           
 
Method Summary
 void close()
           
 void flush()
           
 void serialize(Expression e)
           
protected abstract  void serializeEnd(int posi, int sizeStartOffset)
           
 void writeExpression(Expression e)
           
protected abstract  void writeExpression(Expression e, boolean flush)
          Required call which actually writes out the bytes of an expression
protected  boolean writeExpression(Expression e, int pos, int offset, boolean flush)
           
 void writeInitializedExpression(Expression e)
           
protected  void writeNewEntryPointMarker(int posi, Expression e)
           
protected  void writeSeenEntryPoint(int posi)
           
 
Methods inherited from class sisc.ser.SerializerImpl
lookupLibraryBinding, write, write, write, writeBigDecimal, writeBigInteger, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeExpressionArray, writeFloat, writeInt, writeLong, writeObject, writeShort, writeSymbolicEnvironment, writeUTF
 
Methods inherited from class sisc.ser.BerEncoding
readBer, readBerLong, readBerShort, writeBer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface sisc.ser.Serializer
writeClass
 

Constructor Detail

SLL2Serializer

protected SLL2Serializer(AppContext ctx,
                         java.io.ObjectOutput out)
                  throws java.io.IOException
Throws:
java.io.IOException
Method Detail

writeExpression

protected abstract void writeExpression(Expression e,
                                        boolean flush)
                                 throws java.io.IOException
Required call which actually writes out the bytes of an expression

Parameters:
e -
flush -
Throws:
java.io.IOException

serializeEnd

protected abstract void serializeEnd(int posi,
                                     int sizeStartOffset)

writeExpression

public void writeExpression(Expression e)
                     throws java.io.IOException
Throws:
java.io.IOException

writeInitializedExpression

public void writeInitializedExpression(Expression e)
                                throws java.io.IOException
Throws:
java.io.IOException

serialize

public void serialize(Expression e)
               throws java.io.IOException
Throws:
java.io.IOException

writeExpression

protected boolean writeExpression(Expression e,
                                  int pos,
                                  int offset,
                                  boolean flush)
                           throws java.io.IOException
Throws:
java.io.IOException

close

public void close()
           throws java.io.IOException
Specified by:
close in interface java.io.ObjectOutput
Overrides:
close in class SerializerImpl
Throws:
java.io.IOException

flush

public void flush()
           throws java.io.IOException
Specified by:
flush in interface java.io.ObjectOutput
Overrides:
flush in class SerializerImpl
Throws:
java.io.IOException

writeSeenEntryPoint

protected void writeSeenEntryPoint(int posi)
                            throws java.io.IOException
Throws:
java.io.IOException

writeNewEntryPointMarker

protected void writeNewEntryPointMarker(int posi,
                                        Expression e)
                                 throws java.io.IOException
Throws:
java.io.IOException