org.metastatic.rsync.v2
Class DuplexByteBuffer
java.lang.Object
|
+--org.metastatic.rsync.v2.DuplexByteBuffer
- All Implemented Interfaces:
- MultiplexedIO
- public class DuplexByteBuffer
- extends Object
- implements MultiplexedIO
buffer
protected final ByteBuffer buffer
outputBuffer
protected final ByteBuffer outputBuffer
duplex
protected boolean duplex
DuplexByteBuffer
public DuplexByteBuffer(ByteBuffer buffer)
setDuplex
public void setDuplex(boolean duplex)
put
public void put(byte[] buf,
int off,
int len)
put
public void put(byte[] buf)
put
public void put(byte b)
putInt
public void putInt(int i)
putLong
public void putLong(long l)
putString
public void putString(String string)
putShortString
public void putShortString(String string)
putString
public void putString(int logcode,
String message)
toString
public String toString()
- Overrides:
toString
in class Object
flush
public void flush()
putLogcode
protected void putLogcode(int logcode,
int len)