sisc.ser
Class SerializerImpl

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

public abstract class SerializerImpl
extends BerEncoding
implements Serializer


Field Summary
protected  AppContext ctx
           
protected  java.io.ObjectOutput datout
           
 
Constructor Summary
protected SerializerImpl(AppContext ctx, java.io.ObjectOutput out)
           
 
Method Summary
 void close()
           
 void flush()
           
 LibraryBinding lookupLibraryBinding(Expression e)
           
 void write(byte[] b)
           
 void write(byte[] b, int off, int len)
           
 void write(int b)
           
 void writeBigDecimal(java.math.BigDecimal d)
           
 void writeBigInteger(java.math.BigInteger i)
           
 void writeBoolean(boolean v)
           
 void writeByte(int v)
           
 void writeBytes(java.lang.String s)
           
 void writeChar(int v)
           
 void writeChars(java.lang.String v)
           
 void writeDouble(double v)
           
 void writeExpressionArray(Expression[] v)
           
 void writeFloat(float v)
           
 void writeInt(int v)
           
 void writeLong(long v)
           
 void writeObject(java.lang.Object o)
           
 void writeShort(int v)
           
 void writeSymbolicEnvironment(SymbolicEnvironment e)
           
 void writeUTF(java.lang.String v)
           
 
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, writeExpression, writeInitializedExpression
 

Field Detail

ctx

protected AppContext ctx

datout

protected java.io.ObjectOutput datout
Constructor Detail

SerializerImpl

protected SerializerImpl(AppContext ctx,
                         java.io.ObjectOutput out)
Method Detail

lookupLibraryBinding

public LibraryBinding lookupLibraryBinding(Expression e)
                                    throws java.io.IOException
Throws:
java.io.IOException

writeBigDecimal

public void writeBigDecimal(java.math.BigDecimal d)
                     throws java.io.IOException
Specified by:
writeBigDecimal in interface Serializer
Throws:
java.io.IOException

writeBigInteger

public void writeBigInteger(java.math.BigInteger i)
                     throws java.io.IOException
Specified by:
writeBigInteger in interface Serializer
Throws:
java.io.IOException

writeExpressionArray

public void writeExpressionArray(Expression[] v)
                          throws java.io.IOException
Specified by:
writeExpressionArray in interface Serializer
Throws:
java.io.IOException

writeSymbolicEnvironment

public void writeSymbolicEnvironment(SymbolicEnvironment e)
                              throws java.io.IOException
Specified by:
writeSymbolicEnvironment in interface Serializer
Throws:
java.io.IOException

write

public void write(byte[] b)
           throws java.io.IOException
Specified by:
write in interface java.io.DataOutput
Specified by:
write in interface java.io.ObjectOutput
Throws:
java.io.IOException

write

public void write(byte[] b,
                  int off,
                  int len)
           throws java.io.IOException
Specified by:
write in interface java.io.DataOutput
Specified by:
write in interface java.io.ObjectOutput
Throws:
java.io.IOException

write

public void write(int b)
           throws java.io.IOException
Specified by:
write in interface java.io.DataOutput
Specified by:
write in interface java.io.ObjectOutput
Throws:
java.io.IOException

writeBoolean

public void writeBoolean(boolean v)
                  throws java.io.IOException
Specified by:
writeBoolean in interface java.io.DataOutput
Throws:
java.io.IOException

writeByte

public void writeByte(int v)
               throws java.io.IOException
Specified by:
writeByte in interface java.io.DataOutput
Throws:
java.io.IOException

writeBytes

public void writeBytes(java.lang.String s)
                throws java.io.IOException
Specified by:
writeBytes in interface java.io.DataOutput
Throws:
java.io.IOException

writeChar

public void writeChar(int v)
               throws java.io.IOException
Specified by:
writeChar in interface java.io.DataOutput
Throws:
java.io.IOException

writeChars

public void writeChars(java.lang.String v)
                throws java.io.IOException
Specified by:
writeChars in interface java.io.DataOutput
Throws:
java.io.IOException

writeFloat

public void writeFloat(float v)
                throws java.io.IOException
Specified by:
writeFloat in interface java.io.DataOutput
Throws:
java.io.IOException

writeDouble

public void writeDouble(double v)
                 throws java.io.IOException
Specified by:
writeDouble in interface java.io.DataOutput
Throws:
java.io.IOException

writeInt

public void writeInt(int v)
              throws java.io.IOException
Specified by:
writeInt in interface java.io.DataOutput
Throws:
java.io.IOException

writeLong

public void writeLong(long v)
               throws java.io.IOException
Specified by:
writeLong in interface java.io.DataOutput
Throws:
java.io.IOException

writeShort

public void writeShort(int v)
                throws java.io.IOException
Specified by:
writeShort in interface java.io.DataOutput
Throws:
java.io.IOException

writeUTF

public void writeUTF(java.lang.String v)
              throws java.io.IOException
Specified by:
writeUTF in interface java.io.DataOutput
Throws:
java.io.IOException

writeObject

public void writeObject(java.lang.Object o)
                 throws java.io.IOException
Specified by:
writeObject in interface java.io.ObjectOutput
Throws:
java.io.IOException

flush

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

close

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