public final class StreamProxy<S,R> extends Object implements RpcStream, BidiStream<S,R>
| Modifier and Type | Field and Description |
|---|---|
long |
bytesRead |
long |
bytesWritten |
StreamHandler |
handler |
| Modifier and Type | Method and Description |
|---|---|
int |
available() |
void |
close() |
void |
flush() |
long |
getBytesRead() |
long |
getBytesWritten() |
InetSocketAddress |
getLocalAddress() |
InetSocketAddress |
getRemoteAddress() |
int |
read() |
int |
read(byte[] b) |
int |
read(byte[] b,
int off,
int len) |
void |
read(ByteBuffer buf) |
boolean |
readBoolean() |
byte |
readByte() |
char |
readChar() |
double |
readDouble() |
float |
readFloat() |
void |
readFully(byte[] b) |
void |
readFully(byte[] b,
int off,
int len) |
int |
readInt() |
String |
readLine() |
long |
readLong() |
Object |
readObject() |
short |
readShort() |
int |
readUnsignedByte() |
int |
readUnsignedShort() |
String |
readUTF() |
R |
receive() |
void |
send(S object) |
R |
sendAndGet(S object) |
long |
skip(long n) |
int |
skipBytes(int n) |
void |
write(byte[] b) |
void |
write(byte[] b,
int off,
int len) |
void |
write(ByteBuffer buf) |
void |
write(int b) |
void |
writeBoolean(boolean v) |
void |
writeByte(int v) |
void |
writeBytes(String s) |
void |
writeChar(int v) |
void |
writeChars(String s) |
void |
writeDouble(double v) |
void |
writeFloat(float v) |
void |
writeInt(int v) |
void |
writeLong(long v) |
void |
writeObject(Object obj) |
void |
writeShort(int v) |
void |
writeUTF(String s) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreatecreatecreatepublic final StreamHandler handler
public long bytesRead
public long bytesWritten
public final InetSocketAddress getLocalAddress()
getLocalAddress in interface BaseStreampublic final InetSocketAddress getRemoteAddress()
getRemoteAddress in interface BaseStreampublic final long getBytesRead()
getBytesRead in interface BaseStreampublic final long getBytesWritten()
getBytesWritten in interface BaseStreampublic final void read(ByteBuffer buf) throws IOException
read in interface RpcStreamIOExceptionpublic final Object readObject() throws IOException
readObject in interface ObjectInputIOExceptionpublic final int read()
throws IOException
read in interface ObjectInputIOExceptionpublic final int read(byte[] b)
throws IOException
read in interface ObjectInputIOExceptionpublic final int read(byte[] b,
int off,
int len)
throws IOException
read in interface ObjectInputIOExceptionpublic final long skip(long n)
throws IOException
skip in interface ObjectInputIOExceptionpublic final int available()
available in interface ObjectInputpublic final void readFully(byte[] b)
throws IOException
readFully in interface DataInputIOExceptionpublic final void readFully(byte[] b,
int off,
int len)
throws IOException
readFully in interface DataInputIOExceptionpublic final int skipBytes(int n)
throws IOException
skipBytes in interface DataInputIOExceptionpublic final boolean readBoolean()
throws IOException
readBoolean in interface DataInputIOExceptionpublic final byte readByte()
throws IOException
readByte in interface DataInputIOExceptionpublic final int readUnsignedByte()
throws IOException
readUnsignedByte in interface DataInputIOExceptionpublic final short readShort()
throws IOException
readShort in interface DataInputIOExceptionpublic final int readUnsignedShort()
throws IOException
readUnsignedShort in interface DataInputIOExceptionpublic final char readChar()
throws IOException
readChar in interface DataInputIOExceptionpublic final int readInt()
throws IOException
readInt in interface DataInputIOExceptionpublic final long readLong()
throws IOException
readLong in interface DataInputIOExceptionpublic final float readFloat()
throws IOException
readFloat in interface DataInputIOExceptionpublic final double readDouble()
throws IOException
readDouble in interface DataInputIOExceptionpublic final String readLine() throws IOException
readLine in interface DataInputIOExceptionpublic final String readUTF() throws IOException
readUTF in interface DataInputIOExceptionpublic final void write(ByteBuffer buf) throws IOException
write in interface RpcStreamIOExceptionpublic final void writeObject(Object obj) throws IOException
writeObject in interface ObjectOutputIOExceptionpublic final void write(int b)
throws IOException
write in interface DataOutputwrite in interface ObjectOutputIOExceptionpublic final void write(byte[] b)
throws IOException
write in interface DataOutputwrite in interface ObjectOutputIOExceptionpublic final void write(byte[] b,
int off,
int len)
throws IOException
write in interface DataOutputwrite in interface ObjectOutputIOExceptionpublic final void writeBoolean(boolean v)
throws IOException
writeBoolean in interface DataOutputIOExceptionpublic final void writeByte(int v)
throws IOException
writeByte in interface DataOutputIOExceptionpublic final void writeShort(int v)
throws IOException
writeShort in interface DataOutputIOExceptionpublic final void writeChar(int v)
throws IOException
writeChar in interface DataOutputIOExceptionpublic final void writeInt(int v)
throws IOException
writeInt in interface DataOutputIOExceptionpublic final void writeLong(long v)
throws IOException
writeLong in interface DataOutputIOExceptionpublic final void writeFloat(float v)
throws IOException
writeFloat in interface DataOutputIOExceptionpublic final void writeDouble(double v)
throws IOException
writeDouble in interface DataOutputIOExceptionpublic final void writeBytes(String s) throws IOException
writeBytes in interface DataOutputIOExceptionpublic final void writeChars(String s) throws IOException
writeChars in interface DataOutputIOExceptionpublic final void writeUTF(String s) throws IOException
writeUTF in interface DataOutputIOExceptionpublic final void flush()
throws IOException
flush in interface ObjectOutputflush in interface BidiStream<S,R>IOExceptionpublic final void close()
close in interface ObjectInputclose in interface ObjectOutputclose in interface AutoCloseableclose in interface BaseStreampublic final R receive() throws IOException
receive in interface ReceiveStream<R>IOExceptionpublic final void send(S object) throws IOException
send in interface SendStream<S>IOExceptionpublic final R sendAndGet(S object) throws IOException
sendAndGet in interface BidiStream<S,R>IOExceptionCopyright © 2019. All rights reserved.