jremote jbase5.2.1

com.jbase.jremote.io
Class IOJBaseObjectWriter

java.lang.Object
  extended by com.jbase.jremote.io.AbstractJBaseObjectWriter
      extended by com.jbase.jremote.io.IOJBaseObjectWriter
All Implemented Interfaces:
JBaseObjectWriter

public class IOJBaseObjectWriter
extends AbstractJBaseObjectWriter

jBase object writer based on the DataOutputStream.


Constructor Summary
IOJBaseObjectWriter(java.io.OutputStream os)
           
IOJBaseObjectWriter(java.io.OutputStream os, boolean compressed, int compressionThreshold)
           
 
Method Summary
 void close()
           
protected  void flush()
           
protected  void outByte(byte[] b)
           
protected  void outByte(int b)
           
protected  void outInt(int i)
           
protected  void outUTF(java.lang.String s)
          Write a UTF8 string.
 
Methods inherited from class com.jbase.jremote.io.AbstractJBaseObjectWriter
writeInt, writeJBaseSerializableObject, writeObject, writeObject, writeObject, writeObject, writeRootObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IOJBaseObjectWriter

public IOJBaseObjectWriter(java.io.OutputStream os)

IOJBaseObjectWriter

public IOJBaseObjectWriter(java.io.OutputStream os,
                           boolean compressed,
                           int compressionThreshold)
Method Detail

close

public void close()
           throws java.io.IOException
Throws:
java.io.IOException

flush

protected void flush()
              throws java.io.IOException
Specified by:
flush in class AbstractJBaseObjectWriter
Throws:
java.io.IOException

outByte

protected void outByte(byte[] b)
                throws java.io.IOException
Specified by:
outByte in class AbstractJBaseObjectWriter
Throws:
java.io.IOException

outByte

protected void outByte(int b)
                throws java.io.IOException
Specified by:
outByte in class AbstractJBaseObjectWriter
Throws:
java.io.IOException

outInt

protected void outInt(int i)
               throws java.io.IOException
Specified by:
outInt in class AbstractJBaseObjectWriter
Throws:
java.io.IOException

outUTF

protected void outUTF(java.lang.String s)
               throws java.io.IOException
Write a UTF8 string. This could be made more efficient by implementing our own UTF8 encoder (or using the DataOutputStream) instead of duplicating the string.

Specified by:
outUTF in class AbstractJBaseObjectWriter
Throws:
java.io.IOException

jremote jbase5.2.1

Copyright © 2010 TEMENOS. All Rights Reserved.