public abstract class AbstractOptionHandler extends Object implements TelnetOptionHandler
Modifier and Type | Field and Description |
---|---|
protected boolean |
on |
protected TelnetOption |
option |
protected boolean |
ready |
protected TelnetOutputStream |
telnetOutputStream |
Modifier | Constructor and Description |
---|---|
protected |
AbstractOptionHandler(TelnetOption option) |
Modifier and Type | Method and Description |
---|---|
protected void |
do_() |
protected void |
dont() |
TelnetOption |
getOption() |
boolean |
isReady() |
abstract void |
onDO() |
abstract void |
onDONT() |
void |
onSubnegotiation(byte[] data,
int off,
int len) |
abstract void |
onWILL() |
abstract void |
onWONT() |
void |
start(TelnetOutputStream telnetOutputStream) |
protected void |
sub(byte[] buf) |
protected void |
sub(byte[] buf,
int off,
int len) |
protected void |
will() |
protected void |
wont() |
protected TelnetOption option
protected TelnetOutputStream telnetOutputStream
protected boolean on
protected boolean ready
protected AbstractOptionHandler(TelnetOption option)
public TelnetOption getOption()
getOption
in interface TelnetOptionHandler
public boolean isReady()
isReady
in interface TelnetOptionHandler
public void start(TelnetOutputStream telnetOutputStream) throws IOException
start
in interface TelnetOptionHandler
IOException
public abstract void onWILL() throws IOException
onWILL
in interface TelnetOptionHandler
IOException
public abstract void onWONT() throws IOException
onWONT
in interface TelnetOptionHandler
IOException
public abstract void onDO() throws IOException
onDO
in interface TelnetOptionHandler
IOException
public abstract void onDONT() throws IOException
onDONT
in interface TelnetOptionHandler
IOException
public void onSubnegotiation(byte[] data, int off, int len) throws IOException
onSubnegotiation
in interface TelnetOptionHandler
IOException
protected void will() throws IOException
IOException
protected void wont() throws IOException
IOException
protected void do_() throws IOException
IOException
protected void dont() throws IOException
IOException
protected void sub(byte[] buf) throws IOException
IOException
protected void sub(byte[] buf, int off, int len) throws IOException
IOException
Copyright © 2016. All rights reserved.