|
Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile Client 11g Release 1 (11.1.1) E17503-02 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.InputStream
oracle.adfnmc.java.io.ObjectInputStream
public class ObjectInputStream
Field Summary | |
---|---|
static java.lang.Class |
CLASS_INSTANCE
|
Fields inherited from interface oracle.adfnmc.java.io.ObjectStreamConstants |
---|
baseWireHandle, PROTOCOL_VERSION_1, PROTOCOL_VERSION_2, SC_BLOCK_DATA, SC_ENUM, SC_EXTERNALIZABLE, SC_SERIALIZABLE, SC_WRITE_METHOD, STREAM_MAGIC, STREAM_VERSION, 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 | |
---|---|
ObjectInputStream(java.io.InputStream input)
|
Method Summary | |
---|---|
void |
defaultReadObject()
Default method to read objects from the receiver. |
protected boolean |
enableResolveObject(boolean enable)
|
int |
read()
Reads a single byte from the receiver and returns the result as an int. |
int |
read(byte[] buffer,
int offset,
int length)
Reads at most length bytes from the receiver and stores them in byte array buffer
starting at offset offset . |
boolean |
readBoolean()
Reads and returns primitive data of type boolean read from the receiver |
byte |
readByte()
Reads and returns primitive data of type byte read from the receiver |
char |
readChar()
Reads and returns primitive data of type char read from the receiver |
double |
readDouble()
Reads and returns primitive data of type double read from the receiver |
float |
readFloat()
Reads and returns primitive data of type float read from the receiver |
void |
readFully(byte[] buffer)
Reads bytes from the receiver into the byte array buffer . |
void |
readFully(byte[] buffer,
int offset,
int length)
Reads bytes from the receiver into the byte array buffer . |
int |
readInt()
Reads and returns primitive data of type int read from the receiver |
long |
readLong()
Reads and returns primitive data of type long read from the receiver |
java.lang.Object |
readObject()
Reads the next object from this ObjectInput. |
short |
readShort()
Reads and returns primitive data of type short from the receiver |
int |
readUnsignedByte()
Reads and returns primitive data of type byte (unsigned) from the receiver |
int |
readUnsignedShort()
Reads and returns primitive data of type short (unsigned) from the receiver |
java.lang.String |
readUTF()
Reads and returns primitive data of type String read in UTF format from the receiver |
protected java.lang.Class |
resolveClass(ObjectStreamClass osClass)
|
int |
skipBytes(int length)
Skips length bytes of primitive data from the receiver. |
Methods inherited from class java.io.InputStream |
---|
available, close, mark, markSupported, read, reset, skip |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface oracle.adfnmc.java.io.ObjectInput |
---|
available, close, read, skip |
Field Detail |
---|
public static final java.lang.Class CLASS_INSTANCE
Constructor Detail |
---|
public ObjectInputStream(java.io.InputStream input) throws java.io.IOException
java.io.IOException
Method Detail |
---|
public int read() throws java.io.IOException
read
in interface ObjectInput
read
in class java.io.InputStream
java.io.IOException
- If an IO exception happened when reading the primitive data.public int read(byte[] buffer, int offset, int length) throws java.io.IOException
length
bytes from the receiver and stores them in byte array buffer
starting at offset offset
. Answer the number of bytes actually read or -1 if no bytes were read and
end of stream was encountered.
read
in interface ObjectInput
read
in class java.io.InputStream
buffer
- the byte array in which to store the read bytes.offset
- the offset in buffer
to store the read bytes.length
- the maximum number of bytes to store in buffer
.
java.io.IOException
- If an IO exception happened when reading the primitive data.public boolean readBoolean() throws java.io.IOException
readBoolean
in interface java.io.DataInput
ObjectOutputStream.writeBoolean()
java.io.IOException
- If an IO exception happened when reading the primitive data.public byte readByte() throws java.io.IOException
readByte
in interface java.io.DataInput
ObjectOutputStream.writeByte()
java.io.IOException
- If an IO exception happened when reading the primitive data.public char readChar() throws java.io.IOException
readChar
in interface java.io.DataInput
ObjectOutputStream.writeChar()
java.io.IOException
- If an IO exception happened when reading the primitive data.public double readDouble() throws java.io.IOException
readDouble
in interface java.io.DataInput
ObjectOutputStream.writeDouble()
java.io.IOException
- If an IO exception happened when reading the primitive data.public float readFloat() throws java.io.IOException
readFloat
in interface java.io.DataInput
ObjectOutputStream.writeFloat()
java.io.IOException
- If an IO exception happened when reading the primitive data.public void readFully(byte[] buffer) throws java.io.IOException
buffer
. This method will block until
buffer.length
number of bytes have been read.
readFully
in interface java.io.DataInput
buffer
- the buffer to read bytes into
java.io.IOException
- if a problem occurs reading from this stream.public void readFully(byte[] buffer, int offset, int length) throws java.io.IOException
buffer
. This method will block until
length
number of bytes have been read.
readFully
in interface java.io.DataInput
buffer
- the byte array in which to store the read bytes.offset
- the offset in buffer
to store the read bytes.length
- the maximum number of bytes to store in buffer
.
java.io.IOException
- if a problem occurs reading from this stream.public int readInt() throws java.io.IOException
readInt
in interface java.io.DataInput
ObjectOutputStream.writeInt()
java.io.IOException
- If an IO exception happened when reading the primitive data.public long readLong() throws java.io.IOException
readLong
in interface java.io.DataInput
ObjectOutputStream.writeLong()
java.io.IOException
- If an IO exception happened when reading the primitive data.public final java.lang.Object readObject()
ObjectInput
readObject
in interface ObjectInput
protected java.lang.Class resolveClass(ObjectStreamClass osClass) throws java.io.IOException, java.lang.ClassNotFoundException
java.io.IOException
java.lang.ClassNotFoundException
public java.lang.String readUTF() throws java.io.IOException
readUTF
in interface java.io.DataInput
ObjectOutputStream.writeUTF()
java.io.IOException
- If an IO exception happened when reading the primitive data.public void defaultReadObject() throws java.io.IOException, java.lang.ClassNotFoundException
java.io.IOException
- If an IO error occurs attempting to read the object data
java.lang.ClassNotFoundException
- If the class of the object cannot be found
NotActiveException
- If this method is not called from readObject()ObjectOutputStream.defaultWriteObject()
protected boolean enableResolveObject(boolean enable)
public int readUnsignedShort() throws java.io.IOException
readUnsignedShort
in interface java.io.DataInput
ObjectOutputStream.writeUnsignedShort()
java.io.IOException
- If an IO exception happened when reading the primitive data.public short readShort() throws java.io.IOException
readShort
in interface java.io.DataInput
ObjectOutputStream.writeShort()
java.io.IOException
- If an IO exception happened when reading the primitive data.public int readUnsignedByte() throws java.io.IOException
readUnsignedByte
in interface java.io.DataInput
ObjectOutputStream.writeUnsignedByte()
java.io.IOException
- If an IO exception happened when reading the primitive data.public int skipBytes(int length) throws java.io.IOException
length
bytes of primitive data from the receiver. It should not be used to skip bytes at any
arbitrary position; just when reading primitive data types (ints, chars, etc).
skipBytes
in interface java.io.DataInput
length
- How many bytes to skip
java.io.IOException
- If any IO problem occurred when trying to skip the bytes.
|
Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile Client 11g Release 1 (11.1.1) E17503-02 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |