Class SafeObjectInputStream
java.lang.Object
org.apache.axis2.context.externalize.SafeObjectInputStream
- All Implemented Interfaces:
DataInput,ObjectInput,ObjectStreamConstants,AutoCloseable
A SafeObjectInputStream reads data that was written by SafeObjectOutputStream
- See Also:
-
SafeObjectInput
-
Field Summary
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 -
Method Summary
Modifier and TypeMethodDescriptionintvoidclose()static SafeObjectInputStreaminstall(ObjectInput in) Add the SafeObjectInputStream if necessaryintread()intread(byte[] b) intread(byte[] b, int off, int len) Read the input stream and place objects in an ArrayListbooleanbytereadByte()charreadChar()doublefloatvoidreadFully(byte[] b) voidreadFully(byte[] b, int off, int len) Read the input stream and place the key/value pairs in a hashmapintreadInt()readLine()Read the input stream and place objects in a LinkedListRead hte input stream and place objects in the specified ListlongreadLong()Read the input stream and place the key/value pairs in the indicated MapshortintintreadUTF()longskip(long n) intskipBytes(int n)
-
Method Details
-
install
Add the SafeObjectInputStream if necessary- Parameters:
in-- Returns:
-
available
- Specified by:
availablein interfaceObjectInput- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceObjectInput- Throws:
IOException
-
read
- Specified by:
readin interfaceObjectInput- Throws:
IOException
-
read
- Specified by:
readin interfaceObjectInput- Throws:
IOException
-
read
- Specified by:
readin interfaceObjectInput- Throws:
IOException
-
readBoolean
- Specified by:
readBooleanin interfaceDataInput- Throws:
IOException
-
readByte
- Specified by:
readBytein interfaceDataInput- Throws:
IOException
-
readChar
- Specified by:
readCharin interfaceDataInput- Throws:
IOException
-
readDouble
- Specified by:
readDoublein interfaceDataInput- Throws:
IOException
-
readFloat
- Specified by:
readFloatin interfaceDataInput- Throws:
IOException
-
readFully
- Specified by:
readFullyin interfaceDataInput- Throws:
IOException
-
readFully
- Specified by:
readFullyin interfaceDataInput- Throws:
IOException
-
readInt
- Specified by:
readIntin interfaceDataInput- Throws:
IOException
-
readLine
- Specified by:
readLinein interfaceDataInput- Throws:
IOException
-
readLong
- Specified by:
readLongin interfaceDataInput- Throws:
IOException
-
readObject
- Specified by:
readObjectin interfaceObjectInput- Throws:
ClassNotFoundExceptionIOException
-
readShort
- Specified by:
readShortin interfaceDataInput- Throws:
IOException
-
readUnsignedByte
- Specified by:
readUnsignedBytein interfaceDataInput- Throws:
IOException
-
readUnsignedShort
- Specified by:
readUnsignedShortin interfaceDataInput- Throws:
IOException
-
readUTF
- Specified by:
readUTFin interfaceDataInput- Throws:
IOException
-
skip
- Specified by:
skipin interfaceObjectInput- Throws:
IOException
-
skipBytes
- Specified by:
skipBytesin interfaceDataInput- Throws:
IOException
-
readHashMap
Read the input stream and place the key/value pairs in a hashmap- Returns:
- HashMap or null
- Throws:
IOException
-
readMap
Read the input stream and place the key/value pairs in the indicated Map- Parameters:
map- input map- Returns:
- map or null
- Throws:
IOException
-
readArrayList
Read the input stream and place objects in an ArrayList- Returns:
- ArrayList or null
- Throws:
IOException
-
readLinkedList
Read the input stream and place objects in a LinkedList- Returns:
- LinkedList or null
- Throws:
IOException
-
readList
Read hte input stream and place objects in the specified List- Parameters:
list- List- Returns:
- List or null
- Throws:
IOException
-