Package: com.multiversesocial.hyperview
Class: com.multiversesocial.hyperview.STDInputHandler
Source: src/com/multiversesocial/hyperview/STDInputHandler.java
********************************************** STDInputHandler.java by Tony Swain March 2003
Extends: none
Implements: Runnable
class STDInputHandler implements Runnable
| Declaration | Value / initializer | Description | Source |
|---|---|---|---|
static final int ANYKEY_ENA | = 1 | No comment in source; used in run(), anyKey(). | |
volatile ByteBuffer byteBuffer | No comment in source; assigned in STDInputHandler(); used in run(). | ||
String commandString | No comment in source; assigned in run(); used in processCommand(). | ||
boolean connecting | No comment in source; assigned in STDInputHandler(). | ||
static final int ECHO_ENA | = 2 | No comment in source; not referenced by name in this type’s methods. | |
volatile InputStream inputStream | No comment in source; assigned in STDInputHandler(). | ||
volatile Thread inputTask | No comment in source; assigned in start(), halt(); used in run(). | ||
int iteration | No comment in source; assigned in STDInputHandler(), run(). | ||
int lastCommand | No comment in source; assigned in STDInputHandler(), processCommand(). | ||
static final String NO_CHANNEL_MSG | = "No HyperChannels are active" | No comment in source; not referenced by name in this type’s methods. | |
volatile HyperConnectionHandler parentConnectionHandler | No comment in source; assigned in STDInputHandler(), setConnectionHandler(); used in getConnectionHandler(). | ||
volatile PortNode parentPortNode | No comment in source; assigned in STDInputHandler(), setServer(), setConnectionHandler(); used in getPortNode(). | ||
Object parentServer | No comment in source; assigned in STDInputHandler(), setServer(), setConnectionHandler(), setParentServer(). | ||
volatile ServerLink parentServerLink | No comment in source; assigned in STDInputHandler(), setServer(); used in getServerLink(). | ||
volatile ReadableByteChannel readChannel | No comment in source; assigned in STDInputHandler(); used in run(). | ||
int STDINFlags | No comment in source; assigned in STDInputHandler(), run(), anyKey(). | ||
static int viewNumber | No comment in source; assigned in STDInputHandler(); name appears in 4 other source file(s): AWTViewLink, HyperView, PortControlPane, ViewMemory. |
| Signature | Description | Source |
|---|---|---|
STDInputHandler() | 13 statement(s); calls super(), Channels.newChannel(), Channels.newInputStream(), ByteBuffer.allocateDirect(). | |
STDInputHandler(HyperProcess tProcess) | 13 statement(s); calls super(), Channels.newChannel(), Channels.newInputStream(), ByteBuffer.allocateDirect(). | |
STDInputHandler(ServerLink tHandler) | 4 statement(s); calls this(). | |
STDInputHandler(HyperConnectionHandler tHandler) | 4 statement(s); calls this(). |
| Signature | Description | Source |
|---|---|---|
void about() | 2 statement(s). | |
void anyKey() | 4 statement(s); calls tempSynch.wait(); creates Object. | |
String getCommandString(int tInt) | 1 statement(s). | |
public HyperConnectionHandler getConnectionHandler() | Returns parentConnectionHandler. | |
public PortNode getPortNode() | Returns parentPortNode. | |
public ServerLink getServerLink() | Returns parentServerLink. | |
public void halt() | 3 statement(s); calls tThread.interrupt(). | |
int isCommand(String[] tStringArray) | 9 statement(s); calls tString.equals(). | |
public static void main(String[] args) | 3 statement(s); calls stdin.start(), stdin.inputTask.join(); creates STDInputHandler. | |
void processCommand(int tReturnValue, String[] args) | 2 statement(s); calls HyperLinkedList.showLists(), HyperLinkedList.saveLists(), showMemory(), System.gc(), showCommands() …. | |
public synchronized void run() | 6 statement(s); calls Thread.currentThread(), byteBuffer.clear(), readChannel.read(), byteBuffer.position(), byteBuffer.flip() …; creates Object, String, StringTokenizer. | |
public void setConnectionHandler(HyperConnectionHandler tHandler) | 3 statement(s). | |
public void setParentServer(Object tServer) | Sets parentServer = tServer. | |
public void setServer(ServerLink tServer) | 3 statement(s). | |
void showCommands() | 7 statement(s). | |
void showMemory() | 7 statement(s); calls Runtime.getRuntime(), rt.freeMemory(), rt.maxMemory(), rt.totalMemory(). | |
public void start() | 3 statement(s); calls inputTask.setName(), inputTask.start(); creates Thread. |
instantiation — HyperConnectionHandler.java, line 180
180 stdInputHandler = new STDInputHandler(this);
declaration — HyperChannel.java, line 373
373 public void join(STDInputHandler tSTDIN)
374 {