Class BidirectionalStreamConnectionByteTransceiverImpl

    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.refcodes.component.BidirectionalConnectionComponent

        org.refcodes.component.BidirectionalConnectionComponent.BidirectionalConnectionAutomaton<INPUT extends Object,OUTPUT extends Object>
      • Nested classes/interfaces inherited from interface org.refcodes.component.BidirectionalConnectionOpenable

        org.refcodes.component.BidirectionalConnectionOpenable.BidirectionalConnectionOpenAutomaton<INPUT extends Object,OUTPUT extends Object>
      • Nested classes/interfaces inherited from interface org.refcodes.component.Closable

        org.refcodes.component.Closable.CloseAutomaton, org.refcodes.component.Closable.CloseBuilder<B extends org.refcodes.component.Closable.CloseBuilder<B>>
      • Nested classes/interfaces inherited from interface org.refcodes.component.ClosedAccessor

        org.refcodes.component.ClosedAccessor.ClosedMutator, org.refcodes.component.ClosedAccessor.ClosedProperty
      • Nested classes/interfaces inherited from interface org.refcodes.component.ConnectableComponent

        org.refcodes.component.ConnectableComponent.ConnectableAutomaton
      • Nested classes/interfaces inherited from interface org.refcodes.component.ConnectionStatusAccessor

        org.refcodes.component.ConnectionStatusAccessor.ConnectionStatusMutator, org.refcodes.component.ConnectionStatusAccessor.ConnectionStatusProperty
      • Nested classes/interfaces inherited from interface org.refcodes.component.Flushable

        org.refcodes.component.Flushable.FlushBuilder<B extends org.refcodes.component.Flushable.FlushBuilder<B>>
      • Nested classes/interfaces inherited from interface org.refcodes.component.OpenedAccessor

        org.refcodes.component.OpenedAccessor.OpenedMutator, org.refcodes.component.OpenedAccessor.OpenedProperty
    • Constructor Detail

      • BidirectionalStreamConnectionByteTransceiverImpl

        public BidirectionalStreamConnectionByteTransceiverImpl()
    • Method Detail

      • isOpenable

        public boolean isOpenable​(InputStream aInputStream,
                                  OutputStream aOutputStream)
        Specified by:
        isOpenable in interface org.refcodes.component.BidirectionalConnectionOpenable.BidirectionalConnectionOpenAutomaton<InputStream,OutputStream>
      • open

        public void open​(InputStream aInputStream,
                         OutputStream aOutputStream)
                  throws org.refcodes.component.OpenException
        Specified by:
        open in interface org.refcodes.component.BidirectionalConnectionOpenable<InputStream,OutputStream>
        Throws:
        org.refcodes.component.OpenException
      • writeDatagram

        public void writeDatagram​(byte aDatagram)
                           throws org.refcodes.component.OpenException
        Writes (sends) a byte.
        Specified by:
        writeDatagram in interface ByteConsumer
        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.
      • flush

        public void flush()
                   throws org.refcodes.component.OpenException
        Specified by:
        flush in interface ByteSender
        Specified by:
        flush in interface Flushable
        Specified by:
        flush in interface org.refcodes.component.Flushable
        Throws:
        org.refcodes.component.OpenException
      • close

        public void close()
                   throws org.refcodes.component.CloseException
        Specified by:
        close in interface org.refcodes.component.Closable
        Overrides:
        close in class AbstractInputStreamByteReceiver
        Throws:
        org.refcodes.component.CloseException