|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.crsh.term.spi.net.TermIOServer
public class TermIOServer
Field Summary | |
---|---|
private int |
bindingPort
. |
private TermIO |
delegate
. |
private InputStream |
in
. |
private OutputStream |
out
. |
private int |
port
. |
private Socket |
socket
. |
private ServerSocket |
socketServer
. |
private static Charset |
UTF_8
. |
Constructor Summary | |
---|---|
TermIOServer(TermIO delegate,
int bindingPort)
|
Method Summary | |
---|---|
void |
accept()
|
int |
bind()
|
boolean |
execute()
|
private void |
flush()
|
int |
getBindingPort()
|
int |
getPort()
|
private void |
iterate()
|
private byte |
read()
|
private int |
read(byte[] buffer,
int off,
int len)
|
private void |
write(byte b)
|
private void |
write(byte[] bytes)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final Charset UTF_8
private final TermIO delegate
private final int bindingPort
private ServerSocket socketServer
private Socket socket
private InputStream in
private OutputStream out
private int port
Constructor Detail |
---|
public TermIOServer(TermIO delegate, int bindingPort)
Method Detail |
---|
public int getBindingPort()
public int getPort()
public int bind() throws IOException
IOException
public void accept() throws IOException
IOException
private byte read() throws IOException, Done
IOException
Done
private int read(byte[] buffer, int off, int len) throws IOException, Done
IOException
Done
private void write(byte b) throws IOException, Done
IOException
Done
private void write(byte[] bytes) throws IOException, Done
IOException
Done
private void flush() throws IOException, Done
IOException
Done
public boolean execute() throws IOException, IllegalStateException
IOException
IllegalStateException
private void iterate() throws IOException, Done
IOException
Done
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |