Package one.nio.serial.gen
Class NullObjectInputStream
- java.lang.Object
-
- java.io.InputStream
-
- java.io.ObjectInputStream
-
- one.nio.serial.gen.NullObjectInputStream
-
- All Implemented Interfaces:
java.io.Closeable,java.io.DataInput,java.io.ObjectInput,java.io.ObjectStreamConstants,java.lang.AutoCloseable
- Direct Known Subclasses:
GetFieldInputStream
public class NullObjectInputStream extends java.io.ObjectInputStream
-
-
Field Summary
Fields Modifier and Type Field Description static NullObjectInputStreamINSTANCE-
Fields inherited from interface java.io.ObjectStreamConstants
baseWireHandle, PROTOCOL_VERSION_1, PROTOCOL_VERSION_2, SC_BLOCK_DATA, SC_ENUM, SC_EXTERNALIZABLE, SC_SERIALIZABLE, SC_WRITE_METHOD, SERIAL_FILTER_PERMISSION, STREAM_MAGIC, STREAM_VERSION, SUBCLASS_IMPLEMENTATION_PERMISSION, SUBSTITUTION_PERMISSION, TC_ARRAY, TC_BASE, TC_BLOCKDATA, TC_BLOCKDATALONG, TC_CLASS, TC_CLASSDESC, TC_ENDBLOCKDATA, TC_ENUM, TC_EXCEPTION, TC_LONGSTRING, TC_MAX, TC_NULL, TC_OBJECT, TC_PROXYCLASSDESC, TC_REFERENCE, TC_RESET, TC_STRING
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedNullObjectInputStream()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intavailable()voidclose()voiddefaultReadObject()intread()intread(byte[] b)intread(byte[] buf, int off, int len)booleanreadBoolean()bytereadByte()charreadChar()protected java.io.ObjectStreamClassreadClassDescriptor()doublereadDouble()java.io.ObjectInputStream.GetFieldreadFields()floatreadFloat()voidreadFully(byte[] buf)voidreadFully(byte[] buf, int off, int len)intreadInt()java.lang.StringreadLine()longreadLong()shortreadShort()protected voidreadStreamHeader()java.lang.ObjectreadUnshared()intreadUnsignedByte()intreadUnsignedShort()java.lang.StringreadUTF()longskip(long n)intskipBytes(int len)private static java.io.IOExceptionunsupported()-
Methods inherited from class java.io.ObjectInputStream
enableResolveObject, getObjectInputFilter, readObject, readObjectOverride, registerValidation, resolveClass, resolveObject, resolveProxyClass, setObjectInputFilter
-
-
-
-
Field Detail
-
INSTANCE
public static final NullObjectInputStream INSTANCE
-
-
Method Detail
-
defaultReadObject
public void defaultReadObject()
- Overrides:
defaultReadObjectin classjava.io.ObjectInputStream
-
readUnshared
public java.lang.Object readUnshared() throws java.io.IOException- Overrides:
readUnsharedin classjava.io.ObjectInputStream- Throws:
java.io.IOException
-
readFields
public java.io.ObjectInputStream.GetField readFields() throws java.io.IOException- Overrides:
readFieldsin classjava.io.ObjectInputStream- Throws:
java.io.IOException
-
readStreamHeader
protected void readStreamHeader() throws java.io.IOException- Overrides:
readStreamHeaderin classjava.io.ObjectInputStream- Throws:
java.io.IOException
-
readClassDescriptor
protected java.io.ObjectStreamClass readClassDescriptor() throws java.io.IOException- Overrides:
readClassDescriptorin classjava.io.ObjectInputStream- Throws:
java.io.IOException
-
read
public int read() throws java.io.IOException- Specified by:
readin interfacejava.io.ObjectInput- Overrides:
readin classjava.io.ObjectInputStream- Throws:
java.io.IOException
-
read
public int read(byte[] buf, int off, int len) throws java.io.IOException- Specified by:
readin interfacejava.io.ObjectInput- Overrides:
readin classjava.io.ObjectInputStream- Throws:
java.io.IOException
-
available
public int available()
- Specified by:
availablein interfacejava.io.ObjectInput- Overrides:
availablein classjava.io.ObjectInputStream
-
close
public void close()
- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Specified by:
closein interfacejava.io.ObjectInput- Overrides:
closein classjava.io.ObjectInputStream
-
readBoolean
public boolean readBoolean() throws java.io.IOException- Specified by:
readBooleanin interfacejava.io.DataInput- Overrides:
readBooleanin classjava.io.ObjectInputStream- Throws:
java.io.IOException
-
readByte
public byte readByte() throws java.io.IOException- Specified by:
readBytein interfacejava.io.DataInput- Overrides:
readBytein classjava.io.ObjectInputStream- Throws:
java.io.IOException
-
readUnsignedByte
public int readUnsignedByte() throws java.io.IOException- Specified by:
readUnsignedBytein interfacejava.io.DataInput- Overrides:
readUnsignedBytein classjava.io.ObjectInputStream- Throws:
java.io.IOException
-
readChar
public char readChar() throws java.io.IOException- Specified by:
readCharin interfacejava.io.DataInput- Overrides:
readCharin classjava.io.ObjectInputStream- Throws:
java.io.IOException
-
readShort
public short readShort() throws java.io.IOException- Specified by:
readShortin interfacejava.io.DataInput- Overrides:
readShortin classjava.io.ObjectInputStream- Throws:
java.io.IOException
-
readUnsignedShort
public int readUnsignedShort() throws java.io.IOException- Specified by:
readUnsignedShortin interfacejava.io.DataInput- Overrides:
readUnsignedShortin classjava.io.ObjectInputStream- Throws:
java.io.IOException
-
readInt
public int readInt() throws java.io.IOException- Specified by:
readIntin interfacejava.io.DataInput- Overrides:
readIntin classjava.io.ObjectInputStream- Throws:
java.io.IOException
-
readLong
public long readLong() throws java.io.IOException- Specified by:
readLongin interfacejava.io.DataInput- Overrides:
readLongin classjava.io.ObjectInputStream- Throws:
java.io.IOException
-
readFloat
public float readFloat() throws java.io.IOException- Specified by:
readFloatin interfacejava.io.DataInput- Overrides:
readFloatin classjava.io.ObjectInputStream- Throws:
java.io.IOException
-
readDouble
public double readDouble() throws java.io.IOException- Specified by:
readDoublein interfacejava.io.DataInput- Overrides:
readDoublein classjava.io.ObjectInputStream- Throws:
java.io.IOException
-
readFully
public void readFully(byte[] buf) throws java.io.IOException- Specified by:
readFullyin interfacejava.io.DataInput- Overrides:
readFullyin classjava.io.ObjectInputStream- Throws:
java.io.IOException
-
readFully
public void readFully(byte[] buf, int off, int len) throws java.io.IOException- Specified by:
readFullyin interfacejava.io.DataInput- Overrides:
readFullyin classjava.io.ObjectInputStream- Throws:
java.io.IOException
-
skipBytes
public int skipBytes(int len) throws java.io.IOException- Specified by:
skipBytesin interfacejava.io.DataInput- Overrides:
skipBytesin classjava.io.ObjectInputStream- Throws:
java.io.IOException
-
readLine
public java.lang.String readLine() throws java.io.IOException- Specified by:
readLinein interfacejava.io.DataInput- Overrides:
readLinein classjava.io.ObjectInputStream- Throws:
java.io.IOException
-
readUTF
public java.lang.String readUTF() throws java.io.IOException- Specified by:
readUTFin interfacejava.io.DataInput- Overrides:
readUTFin classjava.io.ObjectInputStream- Throws:
java.io.IOException
-
read
public int read(byte[] b) throws java.io.IOException- Specified by:
readin interfacejava.io.ObjectInput- Overrides:
readin classjava.io.InputStream- Throws:
java.io.IOException
-
skip
public long skip(long n) throws java.io.IOException- Specified by:
skipin interfacejava.io.ObjectInput- Overrides:
skipin classjava.io.InputStream- Throws:
java.io.IOException
-
unsupported
private static java.io.IOException unsupported()
-
-