java.lang.Object
io.ciera.runtime.api.types.Device
io.ciera.runtime.api.types.ReadableDevice
- Direct Known Subclasses:
ReadWriteDevice
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidflush()Flush the output stream.<T> TRead a single token from the device stream and attempt to convert the token to typecls.readLine()Read a single line from the stream and return as a String.voidConvert an instance of an object to a String and append to the stream.voidConvert an instance of an object to a String and append to the stream.Methods inherited from class io.ciera.runtime.api.types.Device
console, fromString, toString
-
Constructor Details
-
ReadableDevice
-
-
Method Details
-
read
Description copied from class:DeviceRead a single token from the device stream and attempt to convert the token to typecls. The tokenization of the stream is left up to the individual implementation, however, by default tokens are delimited by whitespace. -
readLine
Description copied from class:DeviceRead a single line from the stream and return as a String. The line terminator is determined by the system. -
write
Description copied from class:DeviceConvert an instance of an object to a String and append to the stream. -
writeLine
Description copied from class:DeviceConvert an instance of an object to a String and append to the stream. Append an additional line separator. The line separator is determined by the system. -
flush
public void flush()Description copied from class:DeviceFlush the output stream.
-