public class BaseEncoderImpl extends AbstractBaseEncoder implements BaseEncoder
BaseEncoder
interface to be used
with ByteSender
instances.Modifier and Type | Class and Description |
---|---|
static class |
BaseEncoderImpl.BaseEncoderConsumerImpl
Vanilla plain implementation of the
BaseEncoderConsumer interface
to be used with ByteConsumer (ByteSender ) instances. |
BaseEncoder.BaseEncoderConsumer
BaseMetricsAccessor.BaseCodecMetricsProperty, BaseMetricsAccessor.BaseMetricsBuilder<B extends BaseMetricsAccessor.BaseMetricsBuilder<B>>, BaseMetricsAccessor.BaseMetricsMutator
org.refcodes.component.ConnectableComponent.ConnectableAutomaton
org.refcodes.component.OpenedAccessor.OpenedMutator, org.refcodes.component.OpenedAccessor.OpenedProperty
org.refcodes.component.Closable.CloseAutomaton, org.refcodes.component.Closable.CloseBuilder<B extends org.refcodes.component.Closable.CloseBuilder<B>>
Constructor and Description |
---|
BaseEncoderImpl(org.refcodes.io.ByteConsumer aByteConsumer)
Constructs the
BaseEncoder instance using the provided
ByteConsumer to receive the encoded data. |
BaseEncoderImpl(org.refcodes.io.ByteSender aByteSender)
Constructs the
BaseEncoder instance using the provided
ByteSender to receive the encoded data. |
close, flush, getBaseMetrics, open, setBaseMetrics, withBaseMetrics, writeDatagram, writeDatagrams, writeDatagrams
getConnectionStatus, isClosable, isClosed, isOpenable, isOpened, open, setConnectionStatus
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getBaseMetrics
setBaseMetrics
withBaseMetrics
public BaseEncoderImpl(org.refcodes.io.ByteConsumer aByteConsumer)
BaseEncoder
instance using the provided
ByteConsumer
to receive the encoded data.aByteConsumer
- The ByteConsumer
to be fed with the encoded
data.public BaseEncoderImpl(org.refcodes.io.ByteSender aByteSender) throws org.refcodes.component.OpenException
BaseEncoder
instance using the provided
ByteSender
to receive the encoded data.aByteSender
- The ByteSender
to be fed with the encoded
data.org.refcodes.component.OpenException
- in case opening or accessing an open line
(connection, junction, link) caused problems.Copyright © 2017. All rights reserved.