DATA
- The type of the datagram to be operated with.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.ConnectionComponent<DATA>
, org.refcodes.component.ConnectionComponent.ConnectionAutomaton<DATA>
, org.refcodes.component.ConnectionOpenable<DATA>
, org.refcodes.component.ConnectionOpenable.ConnectionOpenAutomaton<DATA>
, org.refcodes.component.ConnectionStatusAccessor
, org.refcodes.component.OpenedAccessor
, Availability
, ConnectionDatagramsReceiver<DATA,InputStream>
, DatagramDestination<DATA>
, DatagramReceiver<DATA>
, DatagramsDestination<DATA>
, DatagramsReceiver<DATA>
, InputStreamConnectionReceiver<DATA>
, Receivable
public class InputStreamConnectionReceiverImpl<DATA extends Serializable> extends AbstractInputStreamReceiver<DATA> implements InputStreamConnectionReceiver<DATA>
InputStreamConnectionReceiver
interface.org.refcodes.component.Closable.CloseAutomaton, org.refcodes.component.Closable.CloseBuilder<B extends org.refcodes.component.Closable.CloseBuilder<B>>
org.refcodes.component.ClosedAccessor.ClosedMutator, org.refcodes.component.ClosedAccessor.ClosedProperty
org.refcodes.component.ConnectableComponent.ConnectableAutomaton
org.refcodes.component.ConnectionComponent.ConnectionAutomaton<CON extends Object>, org.refcodes.component.ConnectionComponent.ConnectionComponentBuilder<CON extends Object,B extends org.refcodes.component.ConnectionComponent.ConnectionComponentBuilder<CON,B>>
org.refcodes.component.ConnectionOpenable.ConnectionOpenAutomaton<CON extends Object>, org.refcodes.component.ConnectionOpenable.ConnectionOpenBuilder<CON extends Object,B extends org.refcodes.component.ConnectionOpenable.ConnectionOpenBuilder<CON,B>>
Constructor | Description |
---|---|
InputStreamConnectionReceiverImpl() |
Instantiates a new input stream connection receiver impl.
|
Modifier and Type | Method | Description |
---|---|---|
boolean |
isOpenable(InputStream aInputStream) |
Checks if is openable.
|
void |
open(InputStream aInputStream) |
Open, see also
ConnectionOpenable.open(Object) . |
getConnectionStatus, isClosable, isClosed, isOpenable, isOpened, open, setConnectionStatus
available, close, receive
available, hasAvailable
close, closeIn, closeQuietly, closeUnchecked
getConnectionStatus, isOpened
receive, receive
receive, receiveAll
public InputStreamConnectionReceiverImpl()
public void open(InputStream aInputStream) throws IOException
ConnectionOpenable.open(Object)
.open
in interface org.refcodes.component.ConnectionOpenable<DATA extends Serializable>
open
in class AbstractInputStreamReceiver<DATA extends Serializable>
aInputStream
- the input streamIOException
- the open exceptionpublic boolean isOpenable(InputStream aInputStream)
ConnectionOpenable.ConnectionOpenAutomaton.isOpenable(Object)
.isOpenable
in interface org.refcodes.component.ConnectionOpenable.ConnectionOpenAutomaton<DATA extends Serializable>
isOpenable
in class AbstractInputStreamReceiver<DATA extends Serializable>
aInputStream
- the input streamCopyright © 2021. All rights reserved.