public class DataSerialUtil extends Object
| 构造器和说明 |
|---|
DataSerialUtil() |
| 限定符和类型 | 方法和说明 |
|---|---|
static Byte |
readByte(ObjectInput in) |
static Integer |
readInt(ObjectInput in) |
static Long |
readLong(ObjectInput in) |
static Short |
readShort(ObjectInput in) |
static String |
readString(ObjectInput in) |
static Set |
readStringArray(ObjectInput in) |
static Timestamp |
readTimestamp(ObjectInput in) |
static void |
writeByte(Byte num,
ObjectOutput out) |
static void |
writeInt(Integer num,
ObjectOutput out) |
static void |
writeLong(Long num,
ObjectOutput out) |
static void |
writeShort(Short num,
ObjectOutput out) |
static void |
writeString(String string,
ObjectOutput out) |
static void |
writeStringArray(Set set,
ObjectOutput out) |
static void |
writeTimestamp(Timestamp stamp,
ObjectOutput out) |
public static void writeLong(Long num, ObjectOutput out) throws IOException
IOExceptionpublic static Long readLong(ObjectInput in) throws ClassNotFoundException, IOException
public static void writeInt(Integer num, ObjectOutput out) throws IOException
IOExceptionpublic static Integer readInt(ObjectInput in) throws ClassNotFoundException, IOException
public static void writeShort(Short num, ObjectOutput out) throws IOException
IOExceptionpublic static Short readShort(ObjectInput in) throws ClassNotFoundException, IOException
public static void writeByte(Byte num, ObjectOutput out) throws IOException
IOExceptionpublic static Byte readByte(ObjectInput in) throws ClassNotFoundException, IOException
public static void writeTimestamp(Timestamp stamp, ObjectOutput out) throws IOException
IOExceptionpublic static Timestamp readTimestamp(ObjectInput in) throws ClassNotFoundException, IOException
public static void writeString(String string, ObjectOutput out) throws IOException
IOExceptionpublic static String readString(ObjectInput in) throws ClassNotFoundException, IOException
public static void writeStringArray(Set set, ObjectOutput out) throws IOException
IOExceptionpublic static Set readStringArray(ObjectInput in) throws ClassNotFoundException, IOException
Copyright © 2022. All rights reserved.