public class InvocationInputStream extends InputStream implements InvocationInput
InvocationInput.InvocationOutputStream| Constructor and Description |
|---|
InvocationInputStream(InvocationChannel channel,
ObjectInputStream in) |
| Modifier and Type | Method and Description |
|---|---|
int |
available() |
void |
close() |
int |
read() |
int |
read(byte[] b) |
int |
read(byte[] b,
int offset,
int length) |
boolean |
readBoolean() |
byte |
readByte() |
char |
readChar() |
double |
readDouble() |
float |
readFloat() |
void |
readFully(byte[] b) |
void |
readFully(byte[] b,
int offset,
int length) |
int |
readInt() |
String |
readLine()
Deprecated.
|
long |
readLong() |
Object |
readObject()
Reads a sharable Serializable or Remote object.
|
short |
readShort() |
Throwable |
readThrowable()
If remote exception cannot be represented by a local exception class
or it cannot be serialized, it is represented as a RemoteException
instead, with as much useful information as possible, including server
stack trace.
|
Object |
readUnshared()
Reads an unshared Serializable or Remote object.
|
String |
readUnsharedString()
Reads the length and of contents the String from a packed format similar
to UTF-8.
|
int |
readUnsignedByte() |
int |
readUnsignedShort() |
String |
readUTF() |
long |
skip(long n) |
int |
skipBytes(int n) |
String |
toString() |
mark, markSupported, resetpublic InvocationInputStream(InvocationChannel channel, ObjectInputStream in)
in - stream to wrappublic void readFully(byte[] b)
throws IOException
readFully in interface DataInputIOExceptionpublic void readFully(byte[] b,
int offset,
int length)
throws IOException
readFully in interface DataInputIOExceptionpublic int skipBytes(int n)
throws IOException
skipBytes in interface DataInputIOExceptionpublic boolean readBoolean()
throws IOException
readBoolean in interface DataInputIOExceptionpublic byte readByte()
throws IOException
readByte in interface DataInputIOExceptionpublic int readUnsignedByte()
throws IOException
readUnsignedByte in interface DataInputIOExceptionpublic short readShort()
throws IOException
readShort in interface DataInputIOExceptionpublic int readUnsignedShort()
throws IOException
readUnsignedShort in interface DataInputIOExceptionpublic char readChar()
throws IOException
readChar in interface DataInputIOExceptionpublic int readInt()
throws IOException
readInt in interface DataInputIOExceptionpublic long readLong()
throws IOException
readLong in interface DataInputIOExceptionpublic float readFloat()
throws IOException
readFloat in interface DataInputIOExceptionpublic double readDouble()
throws IOException
readDouble in interface DataInputIOException@Deprecated public String readLine()
readLine in interface DataInputUnsupportedOperationException - alwayspublic String readUTF() throws IOException
readUTF in interface DataInputIOExceptionpublic String readUnsharedString() throws IOException
InvocationInputreadUnsharedString in interface InvocationInputIOExceptionpublic Object readUnshared() throws IOException, ClassNotFoundException
InvocationInputreadUnshared in interface InvocationInputIOExceptionClassNotFoundExceptionpublic Object readObject() throws IOException, ClassNotFoundException
InvocationInputreadObject in interface ObjectInputreadObject in interface InvocationInputIOExceptionClassNotFoundExceptionpublic int read()
throws IOException
read in interface ObjectInputread in class InputStreamIOExceptionpublic int read(byte[] b)
throws IOException
read in interface ObjectInputread in class InputStreamIOExceptionpublic int read(byte[] b,
int offset,
int length)
throws IOException
read in interface ObjectInputread in class InputStreamIOExceptionpublic long skip(long n)
throws IOException
skip in interface ObjectInputskip in class InputStreamIOExceptionpublic int available()
throws IOException
available in interface ObjectInputavailable in class InputStreamIOExceptionpublic Throwable readThrowable() throws IOException, ReconstructedException
InvocationInputIf remote exception cannot be represented by a local exception class or it cannot be serialized, it is represented as a RemoteException instead, with as much useful information as possible, including server stack trace.
readThrowable in interface InvocationInputIOExceptionReconstructedExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface ObjectInputclose in interface AutoCloseableclose in class InputStreamIOExceptionCopyright © 2006–2015 Cojen. All rights reserved.