public abstract class ReferenceDriverCommunications
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
ReferenceDriverCommunications.LineEndingType |
Modifier and Type | Field and Description |
---|---|
protected ReferenceDriverCommunications.LineEndingType |
lineEndingType |
Constructor and Description |
---|
ReferenceDriverCommunications() |
Modifier and Type | Method and Description |
---|---|
abstract void |
connect() |
abstract void |
disconnect() |
abstract java.lang.String |
getConnectionName() |
GcodeServer |
getGcodeServer() |
ReferenceDriverCommunications.LineEndingType |
getLineEndingType() |
abstract int |
read() |
java.lang.String |
readLine()
Read a line from the input stream.
|
protected java.lang.String |
readUntil(java.lang.String characters)
Read the input stream until one of the characters is found.
|
void |
setLineEndingType(ReferenceDriverCommunications.LineEndingType lineEndingType) |
void |
write(int d) |
protected abstract void |
writeBytes(byte[] data) |
void |
writeLine(java.lang.String data) |
protected ReferenceDriverCommunications.LineEndingType lineEndingType
public abstract void connect() throws java.lang.Exception
java.lang.Exception
public abstract void disconnect() throws java.lang.Exception
java.lang.Exception
public abstract java.lang.String getConnectionName()
protected abstract void writeBytes(byte[] data) throws java.io.IOException
java.io.IOException
public abstract int read() throws java.util.concurrent.TimeoutException, java.io.IOException
java.util.concurrent.TimeoutException
java.io.IOException
public java.lang.String readLine() throws java.util.concurrent.TimeoutException, java.io.IOException
java.util.concurrent.TimeoutException
java.io.IOException
public void writeLine(java.lang.String data) throws java.io.IOException
java.io.IOException
protected java.lang.String readUntil(java.lang.String characters) throws java.util.concurrent.TimeoutException, java.io.IOException
characters
- list of ending charactersjava.util.concurrent.TimeoutException
java.io.IOException
public void write(int d) throws java.io.IOException
java.io.IOException
public void setLineEndingType(ReferenceDriverCommunications.LineEndingType lineEndingType)
public ReferenceDriverCommunications.LineEndingType getLineEndingType()
public GcodeServer getGcodeServer()