Interface ByteConsumer

    • Method Detail

      • writeDatagram

        default void writeDatagram​(byte aDatagram)
                            throws org.refcodes.component.OpenException
        Writes (sends) a byte.
        Specified by:
        writeDatagram in interface ByteDatagramConsumer
        Parameters:
        aDatagram - The byte to be pushed.
        Throws:
        org.refcodes.component.OpenException - Thrown in case opening or accessing an open line (connection, junction, link) caused problems.
      • writeDatagrams

        default void writeDatagrams​(byte[] aDatagrams)
                             throws org.refcodes.component.OpenException
        Writes (sends) a byte block.
        Specified by:
        writeDatagrams in interface ByteBlockConsumer
        Parameters:
        aDatagrams - The byte to be pushed.
        Throws:
        org.refcodes.component.OpenException - Thrown in case opening or accessing an open line (connection, junction, link) caused problems.