Package cn.sliew.milky.serialize.java
Class JavaDataInputView
- java.lang.Object
-
- cn.sliew.milky.serialize.nativejava.NativeJavaDataInputView
-
- cn.sliew.milky.serialize.java.JavaDataInputView
-
- All Implemented Interfaces:
DataInputView,DataInput,Serializable
public class JavaDataInputView extends NativeJavaDataInputView
Java object input implementation- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description JavaDataInputView(InputStream is)JavaDataInputView(InputStream is, boolean compacted)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectreadObject()StringreadUTF()-
Methods inherited from class cn.sliew.milky.serialize.nativejava.NativeJavaDataInputView
getObjectInputStream, readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, skipBytes
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface cn.sliew.milky.serialize.DataInputView
readBytes
-
-
-
-
Constructor Detail
-
JavaDataInputView
public JavaDataInputView(InputStream is) throws IOException
- Throws:
IOException
-
JavaDataInputView
public JavaDataInputView(InputStream is, boolean compacted) throws IOException
- Throws:
IOException
-
-
Method Detail
-
readUTF
public String readUTF() throws IOException
- Specified by:
readUTFin interfaceDataInput- Overrides:
readUTFin classNativeJavaDataInputView- Throws:
IOException
-
readObject
public Object readObject() throws IOException, ClassNotFoundException
- Specified by:
readObjectin interfaceDataInputView- Overrides:
readObjectin classNativeJavaDataInputView- Throws:
IOExceptionClassNotFoundException
-
-