org.objectweb.cjdbc.common.stream
Class CJDBCStream

java.lang.Object
  extended byorg.objectweb.cjdbc.common.stream.CJDBCStream

public class CJDBCStream
extends java.lang.Object

This is a useful stream class to compress and decompress object to a stream.

Author:
Nicolas Modrzyk , Emmanuel Cecchet

Field Summary
(package private) static int STRING_CHUNK_SIZE
           
 
Constructor Summary
CJDBCStream()
           
 
Method Summary
static int countBytes(java.lang.Object obj)
          Statistic method to count the number of bytes of a class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

STRING_CHUNK_SIZE

static final int STRING_CHUNK_SIZE
See Also:
CJDBCOutputStream.writeUTF(String), Constant Field Values
Constructor Detail

CJDBCStream

public CJDBCStream()
Method Detail

countBytes

public static final int countBytes(java.lang.Object obj)
                            throws java.io.IOException
Statistic method to count the number of bytes of a class.

Parameters:
obj - to count bytes
Returns:
the number of bytes
Throws:
java.io.IOException - if fails to read


Copyright © 2002, 2005 - ObjectWeb Consortium - All Rights Reserved.