com.jagacy
Class AbstractConduit
java.lang.Object
com.jagacy.AbstractConduit
- public abstract class AbstractConduit
- extends java.lang.Object
TODO Description of class
- Author:
- Robert M. Preston
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BUFFER_SIZE
protected static final int BUFFER_SIZE
- See Also:
- Constant Field Values
myWidth
protected int myWidth
myHeight
protected int myHeight
myProperties
protected JagacyProperties myProperties
myLogger
protected Loggable myLogger
myInput
protected java.io.BufferedInputStream myInput
myOutput
protected java.io.BufferedOutputStream myOutput
myMutex
protected java.lang.Object myMutex
myTerminal
protected java.lang.String myTerminal
AbstractConduit
protected AbstractConduit()
open
public abstract void open()
throws JagacyException
- Throws:
JagacyException
send
public abstract void send(ByteBuffer data)
throws JagacyException
- Throws:
JagacyException
receive
public abstract ByteBuffer receive(int timeout)
throws JagacyException
- Throws:
JagacyException
isExtended
public abstract boolean isExtended()
getTerminals
protected abstract java.lang.String[] getTerminals()
getWidths
protected abstract int[] getWidths()
getHeights
protected abstract int[] getHeights()
read
protected abstract int read()
throws java.io.IOException
- Throws:
java.io.IOException
write
protected abstract void write(byte[] data)
throws java.io.IOException,
JagacyException
- Throws:
java.io.IOException
JagacyException
createReceiveState
protected abstract int[] createReceiveState()
resetTimeout
protected abstract void resetTimeout()
throws JagacyException
- Throws:
JagacyException
isInitialReceiveState
protected abstract boolean isInitialReceiveState(int[] state)
isValidReceivedData
protected abstract boolean isValidReceivedData(int[] state,
byte b)
isReceiveDone
protected abstract boolean isReceiveDone(int[] state,
byte b)
logBytes
protected void logBytes(java.lang.String message,
byte[] b)
setLogger
public void setLogger(Loggable logger)
setProperties
public void setProperties(JagacyProperties properties)
getWidth
public int getWidth()
getHeight
public int getHeight()
init
protected void init()
throws JagacyException
- Throws:
JagacyException
send
protected void send(byte[] data)
throws JagacyException
- Throws:
JagacyException
receive
protected ByteBuffer receive(ByteBuffer readBuffer)
throws JagacyException
- Throws:
JagacyException
sendBreak
public abstract void sendBreak()
throws JagacyException
- Throws:
JagacyException
abort
protected void abort()
throws JagacyException
- Throws:
JagacyException
close
public void close()
throws JagacyException
- Throws:
JagacyException