org.jboss.serial.util
Class StringUtil
java.lang.Object
org.jboss.serial.util.StringUtil
public class StringUtil
- extends java.lang.Object
This class respects definitions on http://java.sun.com/j2se/1.5.0/docs/api/java/io/DataInput.html#modified-utf-8
- Author:
- Clebert Suconic
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StringUtil
public StringUtil()
saveString
public static void saveString(java.io.DataOutput out,
java.lang.String str,
StringUtilBuffer buffer)
throws java.io.IOException
- Throws:
java.io.IOException
saveString
public static void saveString(java.io.DataOutput out,
java.lang.String str)
throws java.io.IOException
- Throws:
java.io.IOException
readString
public static java.lang.String readString(java.io.DataInput input,
StringUtilBuffer buffer)
throws java.io.IOException
- Throws:
java.io.IOException
calculateUTFSize
public static long calculateUTFSize(java.lang.String str,
StringUtilBuffer stringBuffer)
JBoss Serialization, a new approach to java-serialization.