public class SafeObjectInputStream extends Object implements ObjectInput, ObjectStreamConstants
SafeObjectInputbaseWireHandle, PROTOCOL_VERSION_1, PROTOCOL_VERSION_2, SC_BLOCK_DATA, SC_ENUM, SC_EXTERNALIZABLE, SC_SERIALIZABLE, SC_WRITE_METHOD, 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| Modifier and Type | Method and Description |
|---|---|
int |
available() |
void |
close() |
static SafeObjectInputStream |
install(ObjectInput in)
Add the SafeObjectInputStream if necessary
|
int |
read() |
int |
read(byte[] b) |
int |
read(byte[] b,
int off,
int len) |
ArrayList |
readArrayList()
Read the input stream and place objects in an ArrayList
|
boolean |
readBoolean() |
byte |
readByte() |
char |
readChar() |
double |
readDouble() |
float |
readFloat() |
void |
readFully(byte[] b) |
void |
readFully(byte[] b,
int off,
int len) |
HashMap |
readHashMap()
Read the input stream and place the key/value pairs in a hashmap
|
int |
readInt() |
String |
readLine() |
LinkedList |
readLinkedList()
Read the input stream and place objects in a LinkedList
|
List |
readList(List list)
Read hte input stream and place objects in the specified List
|
long |
readLong() |
Map |
readMap(Map map)
Read the input stream and place the key/value pairs in the
indicated Map
|
Object |
readObject() |
short |
readShort() |
int |
readUnsignedByte() |
int |
readUnsignedShort() |
String |
readUTF() |
long |
skip(long n) |
int |
skipBytes(int n) |
public static SafeObjectInputStream install(ObjectInput in)
in - public int available()
throws IOException
available in interface ObjectInputIOExceptionpublic void close()
throws IOException
close in interface ObjectInputclose in interface AutoCloseableIOExceptionpublic int read()
throws IOException
read in interface ObjectInputIOExceptionpublic int read(byte[] b,
int off,
int len)
throws IOException
read in interface ObjectInputIOExceptionpublic int read(byte[] b)
throws IOException
read in interface ObjectInputIOExceptionpublic boolean readBoolean()
throws IOException
readBoolean in interface DataInputIOExceptionpublic byte readByte()
throws IOException
readByte in interface DataInputIOExceptionpublic char readChar()
throws IOException
readChar in interface DataInputIOExceptionpublic double readDouble()
throws IOException
readDouble in interface DataInputIOExceptionpublic float readFloat()
throws IOException
readFloat in interface DataInputIOExceptionpublic void readFully(byte[] b,
int off,
int len)
throws IOException
readFully in interface DataInputIOExceptionpublic void readFully(byte[] b)
throws IOException
readFully in interface DataInputIOExceptionpublic int readInt()
throws IOException
readInt in interface DataInputIOExceptionpublic String readLine() throws IOException
readLine in interface DataInputIOExceptionpublic long readLong()
throws IOException
readLong in interface DataInputIOExceptionpublic Object readObject() throws ClassNotFoundException, IOException
readObject in interface ObjectInputClassNotFoundExceptionIOExceptionpublic short readShort()
throws IOException
readShort in interface DataInputIOExceptionpublic int readUnsignedByte()
throws IOException
readUnsignedByte in interface DataInputIOExceptionpublic int readUnsignedShort()
throws IOException
readUnsignedShort in interface DataInputIOExceptionpublic String readUTF() throws IOException
readUTF in interface DataInputIOExceptionpublic long skip(long n)
throws IOException
skip in interface ObjectInputIOExceptionpublic int skipBytes(int n)
throws IOException
skipBytes in interface DataInputIOExceptionpublic HashMap readHashMap() throws IOException
IOExceptionSafeObjectOutputStream.writeMap()public Map readMap(Map map) throws IOException
map - input mapIOExceptionSafeObjectOutputStream.writeMap()public ArrayList readArrayList() throws IOException
IOExceptionSafeObjectInputStream.writeList()public LinkedList readLinkedList() throws IOException
IOExceptionSafeObjectInputStream.writeList()public List readList(List list) throws IOException
list - ListIOExceptionSafeObjectInputStream.writeList()Copyright © 2004–2017 The Apache Software Foundation. All rights reserved.