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