public class RemoteReader
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected static byte[] |
BACKSPACE |
protected java.nio.channels.SocketChannel |
channel |
protected int |
counter |
protected java.nio.ByteBuffer |
currentBuffer |
protected boolean |
echo |
protected java.lang.String |
enteredName |
protected static byte[] |
HIGHLIGHT |
protected java.nio.channels.SelectionKey |
key |
protected java.lang.String |
lastCommand |
protected static byte[] |
LINE_BREAK |
protected boolean |
loggedOn |
protected boolean |
maskPassword |
protected static int |
MAX_LEN |
protected static byte[] |
NORMAL |
protected java.lang.String |
password |
protected RemoteRepl |
remoteRepl |
protected char[] |
request |
protected java.util.LinkedList<java.nio.ByteBuffer> |
responseBuffers |
protected byte |
skip |
protected java.lang.String |
username |
| Constructor and Description |
|---|
RemoteReader(RemoteRepl remoteRepl,
java.nio.channels.SocketChannel channel,
java.nio.channels.SelectionKey key,
boolean authenticated,
boolean echo,
java.lang.String username,
java.lang.String password) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addBytes(byte[] bytes,
boolean directSet) |
protected void |
addChar(char c) |
protected void |
addString(java.lang.String string,
boolean directSet) |
protected void |
close() |
protected void |
processCommand(java.lang.String command) |
protected void |
readPacket() |
protected void |
writePacket() |
protected static final byte[] LINE_BREAK
protected static final byte[] BACKSPACE
protected static final byte[] HIGHLIGHT
protected static final byte[] NORMAL
protected final RemoteRepl remoteRepl
protected final java.nio.channels.SocketChannel channel
protected final java.nio.channels.SelectionKey key
protected final boolean echo
protected final java.lang.String username
protected final java.lang.String password
protected boolean maskPassword
protected boolean loggedOn
protected byte skip
protected static final int MAX_LEN
protected char[] request
protected int counter
protected final java.util.LinkedList<java.nio.ByteBuffer> responseBuffers
protected java.nio.ByteBuffer currentBuffer
protected java.lang.String enteredName
protected java.lang.String lastCommand
public RemoteReader(RemoteRepl remoteRepl, java.nio.channels.SocketChannel channel, java.nio.channels.SelectionKey key, boolean authenticated, boolean echo, java.lang.String username, java.lang.String password)
protected void readPacket()
protected void writePacket()
protected void addChar(char c)
protected void addBytes(byte[] bytes,
boolean directSet)
protected void addString(java.lang.String string,
boolean directSet)
protected void close()
protected void processCommand(java.lang.String command)
throws java.lang.Exception
java.lang.Exception