Package com.sshtools.synergy.ssh
Class CachingDataWindow
java.lang.Object
com.sshtools.synergy.ssh.CachingDataWindow
- Direct Known Subclasses:
ForwardingDataWindow
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidvoidintget(byte[] tmp, int offset, int length) intget(ByteBuffer buffer) booleanbooleanisOpen()voidput(ByteBuffer data) intvoidwaitFor(long i)
-
Constructor Details
-
CachingDataWindow
public CachingDataWindow(int size, boolean blocking)
-
-
Method Details
-
enableBlocking
public void enableBlocking() -
disableBlocking
public void disableBlocking() -
hasRemaining
public boolean hasRemaining() -
close
public void close() -
put
- Throws:
EOFException
-
get
- Throws:
EOFException
-
get
- Throws:
EOFException
-
remaining
public int remaining() -
isOpen
public boolean isOpen() -
waitFor
- Throws:
InterruptedException
-