Class ReadWriteDevice


public class ReadWriteDevice extends ReadableDevice
  • Constructor Details

  • Method Details

    • write

      public void write(Object o)
      Description copied from class: Device
      Convert an instance of an object to a String and append to the stream.
      Overrides:
      write in class ReadableDevice
      Parameters:
      o - The instance to write.
    • writeLine

      public void writeLine(Object o)
      Description copied from class: Device
      Convert 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.
      Overrides:
      writeLine in class ReadableDevice
    • flush

      public void flush()
      Description copied from class: Device
      Flush the output stream.
      Overrides:
      flush in class ReadableDevice