Class AbstractSerialDataWriter

    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      protected CharSequence appendNewLine​(CharSequence data)  
      void write​(byte... data)
      Sends one of more bytes to the serial device identified by the given file descriptor.
      void write​(byte[]... data)
      Sends one of more bytes arrays to the serial device identified by the given file descriptor.
      abstract void write​(byte[] data, int offset, int length)
      Sends an array of bytes to the serial port/device identified by the given file descriptor.
      void write​(char... data)
      Sends an array of ASCII characters to the serial port/device identified by the given file descriptor.
      void write​(InputStream input)
      Read content from an input stream of data and write it to the serial port transmit buffer.
      void write​(CharSequence... data)
      Sends one or more ASCII string objects to the serial port/device identified by the given file descriptor.
      void write​(ByteBuffer... data)
      Read the content of byte buffer and write the data to the serial port transmit buffer.
      void write​(CharBuffer... data)
      Sends one or more ASCII CharBuffers to the serial port/device identified by the given file descriptor.
      void write​(Charset charset, char... data)
      Sends an array of characters to the serial port/device identified by the given file descriptor.
      void write​(Charset charset, char[] data, int offset, int length)
      Sends an array of characters to the serial port/device identified by the given file descriptor.
      void write​(Charset charset, CharSequence... data)
      Sends one or more string objects to the serial port/device identified by the given file descriptor.
      void write​(Charset charset, CharBuffer... data)
      Sends one or more CharBuffers to the serial port/device identified by the given file descriptor.
      void write​(Charset charset, Collection<? extends CharSequence> data)
      Sends a collection of string objects to the serial port/device identified by the given file descriptor.
      void write​(Collection<? extends CharSequence> data)
      Sends a collection of ASCII string objects to the serial port/device identified by the given file descriptor.
      void writeln​(CharSequence... data)
      Sends one or more ASCII string objects each appended with a line terminator (CR+LF) to the serial port/device.
      void writeln​(Charset charset, CharSequence... data)
      Sends one or more string objects each appended with a line terminator (CR+LF) to the serial port/device.
      void writeln​(Charset charset, Collection<? extends CharSequence> data)
      Sends a collection of string objects each appended with a line terminator (CR+LF) to the serial port/device.
      void writeln​(Collection<? extends CharSequence> data)
      Sends a collection of ASCII string objects each appended with a line terminator (CR+LF) to the serial port/device.