Package org.webswing.util
Class CheckSerializedSize
- java.lang.Object
-
- java.io.OutputStream
-
- org.webswing.util.CheckSerializedSize
-
- All Implemented Interfaces:
java.io.Closeable,java.io.Flushable,java.lang.AutoCloseable
public class CheckSerializedSize extends java.io.OutputStream
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetNBytes()static longgetSerializedSize(java.io.Serializable obj)Serialize obj and count the bytesvoidwrite(byte[] b, int off, int len)voidwrite(int b)
-
-
-
Method Detail
-
getSerializedSize
public static long getSerializedSize(java.io.Serializable obj)
Serialize obj and count the bytes
-
write
public void write(int b) throws java.io.IOException- Specified by:
writein classjava.io.OutputStream- Throws:
java.io.IOException
-
write
public void write(byte[] b, int off, int len) throws java.io.IOException- Overrides:
writein classjava.io.OutputStream- Throws:
java.io.IOException
-
getNBytes
public long getNBytes()
-
-