Package gda.device.serial
Class StringReader
java.lang.Object
gda.device.serial.StringReader
Class to read a String from a character readable device
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidflush()charread()read(int maxlen) charreadchar()voidsetStripTerminators(boolean stripOn) voidsetTimeout(int timeout) FIXME - Please specify units for param time
-
Field Details
-
stringProps
-
-
Constructor Details
-
StringReader
- Parameters:
charReadableDev-
-
-
Method Details
-
readchar
- Returns:
- char
- Throws:
DeviceException
-
read
- Parameters:
maxlen-- Returns:
- String
- Throws:
DeviceException
-
read
- Returns:
- String
- Throws:
DeviceException
-
flush
- Throws:
DeviceException
-
setTimeout
FIXME - Please specify units for param time- Parameters:
timeout-- Throws:
DeviceException
-
setStripTerminators
public void setStripTerminators(boolean stripOn) - Parameters:
stripOn- Enable or disable removal of terminators from String
-
getLastChar
public char getLastChar()- Returns:
- char
-
getLastString
- Returns:
- String
-