@FunctionalInterface public interface ByteProvider extends ByteDatagramProvider, ByteBlockProvider
Modifier and Type | Method and Description |
---|---|
default byte[] |
readDatagrams()
Caution: Reads till an
OpenException (or an
InterruptedException in case of blocking till more data is
available) occurs. |
default byte[] |
readDatagrams(int aBlockSize)
Read datagrams.
|
readDatagram
default byte[] readDatagrams() throws org.refcodes.component.OpenException, InterruptedException
OpenException
(or an
InterruptedException
in case of blocking till more data is
available) occurs.readDatagrams
in interface ByteBlockProvider
org.refcodes.component.OpenException
- the open exceptionInterruptedException
- the interrupted exceptiondefault byte[] readDatagrams(int aBlockSize) throws org.refcodes.component.OpenException, InterruptedException
readDatagrams
in interface ByteBlockProvider
aBlockSize
- the a block sizeorg.refcodes.component.OpenException
- the open exceptionInterruptedException
- the interrupted exceptionCopyright © 2017. All rights reserved.