Package org.refcodes.codec
Class BaseEncoderImpl.BaseEncoderConsumerImpl
- java.lang.Object
-
- org.refcodes.component.AbstractConnectableAutomaton
-
- org.refcodes.codec.BaseEncoderImpl
-
- org.refcodes.codec.BaseEncoderImpl.BaseEncoderConsumerImpl
-
- All Implemented Interfaces:
java.io.Flushable
,BaseEncoder
,BaseEncoder.BaseEncoderConsumer
,BaseMetricsAccessor
,BaseMetricsAccessor.BaseCodecMetricsProperty
,BaseMetricsAccessor.BaseMetricsBuilder<BaseEncoder>
,BaseMetricsAccessor.BaseMetricsMutator
,Encoder
,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<BaseEncoder>
,org.refcodes.component.ConnectionOpenable<BaseEncoder>
,org.refcodes.component.ConnectionStatusAccessor
,org.refcodes.component.Flushable
,org.refcodes.component.OpenedAccessor
,org.refcodes.io.ByteBlockConsumer
,org.refcodes.io.ByteBlockSender
,org.refcodes.io.ByteConsumer
,org.refcodes.io.ByteDatagramConsumer
,org.refcodes.io.ByteDatagramSender
,org.refcodes.io.ByteSender
,org.refcodes.io.Sendable
- Enclosing class:
- BaseEncoderImpl
public static class BaseEncoderImpl.BaseEncoderConsumerImpl extends BaseEncoderImpl implements BaseEncoder.BaseEncoderConsumer
Vanilla plain implementation of theBaseEncoder.BaseEncoderConsumer
interface to be used withByteConsumer
(ByteSender
) instances.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.refcodes.codec.BaseEncoder
BaseEncoder.BaseEncoderConsumer
-
Nested classes/interfaces inherited from class org.refcodes.codec.BaseEncoderImpl
BaseEncoderImpl.BaseEncoderConsumerImpl
-
Nested classes/interfaces inherited from interface org.refcodes.codec.BaseMetricsAccessor
BaseMetricsAccessor.BaseCodecMetricsProperty, BaseMetricsAccessor.BaseMetricsBuilder<B extends BaseMetricsAccessor.BaseMetricsBuilder<B>>, BaseMetricsAccessor.BaseMetricsMutator
-
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.ConnectionComponent
org.refcodes.component.ConnectionComponent.ConnectionAutomaton<CON extends java.lang.Object>, org.refcodes.component.ConnectionComponent.ConnectionComponentBuilder<CON extends java.lang.Object,B extends org.refcodes.component.ConnectionComponent.ConnectionComponentBuilder<CON,B>>
-
Nested classes/interfaces inherited from interface org.refcodes.component.ConnectionOpenable
org.refcodes.component.ConnectionOpenable.ConnectionOpenAutomaton<CON extends java.lang.Object>, org.refcodes.component.ConnectionOpenable.ConnectionOpenBuilder<CON extends java.lang.Object,B extends org.refcodes.component.ConnectionOpenable.ConnectionOpenBuilder<CON,B>>
-
Nested classes/interfaces inherited from interface org.refcodes.component.ConnectionStatusAccessor
org.refcodes.component.ConnectionStatusAccessor.ConnectionStatusMutator, org.refcodes.component.ConnectionStatusAccessor.ConnectionStatusProperty
-
-
Constructor Summary
Constructors Constructor Description BaseEncoderConsumerImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
open(org.refcodes.io.ByteConsumer aConnection)
Open.-
Methods inherited from class org.refcodes.component.AbstractConnectableAutomaton
getConnectionStatus, isClosable, isClosed, isOpenable, isOpened, open, setConnectionStatus
-
Methods inherited from class org.refcodes.codec.BaseEncoderImpl
close, flush, getBaseMetrics, setBaseMetrics, withBaseMetrics, writeDatagram, writeDatagrams, writeDatagrams
-
Methods inherited from interface org.refcodes.codec.BaseMetricsAccessor
getBaseMetrics
-
Methods inherited from interface org.refcodes.codec.BaseMetricsAccessor.BaseMetricsBuilder
withBaseMetrics
-
Methods inherited from interface org.refcodes.codec.BaseMetricsAccessor.BaseMetricsMutator
setBaseMetrics
-
Methods inherited from interface org.refcodes.component.Closable
close, closeIn, closeQuietly, closeUnchecked
-
Methods inherited from interface org.refcodes.component.ConnectionStatusAccessor
getConnectionStatus, isConnectionOpened
-
-
-
-
Method Detail
-
open
public void open(org.refcodes.io.ByteConsumer aConnection) throws org.refcodes.component.OpenException
Open.- Specified by:
open
in interfaceorg.refcodes.component.ConnectionOpenable<BaseEncoder>
- Overrides:
open
in classBaseEncoderImpl
- Parameters:
aConnection
- the connection- Throws:
org.refcodes.component.OpenException
- the open exception
-
-