Class ByteArrayReceiver

java.lang.Object
org.refcodes.component.AbstractConnectable
All Implemented Interfaces:
org.refcodes.component.Closable, org.refcodes.component.Closable.CloseAutomaton, org.refcodes.component.ClosedAccessor, org.refcodes.component.ConnectableComponent, org.refcodes.component.ConnectableComponent.ConnectableAutomaton, org.refcodes.component.ConnectionStatusAccessor, org.refcodes.component.OpenedAccessor, Availability, ByteDestination, ByteReceiver, BytesDestination, BytesReceiver, Receivable, Skippable, TimeoutInputStreamAccessor, org.refcodes.mixin.InputStreamAccessor, org.refcodes.struct.ByteArrayAccessor

public class ByteArrayReceiver extends AbstractBytesReceiver implements org.refcodes.struct.ByteArrayAccessor
The Class ByteArrayReceiver.
  • Constructor Details

    • ByteArrayReceiver

      public ByteArrayReceiver(byte[] aDatagrams)
      Instantiates a new byte array receiver impl.
      Parameters:
      aDatagrams - the datagrams
    • ByteArrayReceiver

      public ByteArrayReceiver(List<Byte> aDatagrams)
      Instantiates a new byte array receiver impl.
      Parameters:
      aDatagrams - the datagrams
  • Method Details

    • getBytes

      public byte[] getBytes()
      Specified by:
      getBytes in interface org.refcodes.struct.ByteArrayAccessor