Package zmq.io.coder
Class Decoder
- java.lang.Object
-
- zmq.io.coder.DecoderBase
-
- zmq.io.coder.Decoder
-
- All Implemented Interfaces:
IDecoder
public abstract class Decoder extends DecoderBase
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private classDecoder.EightByteSizeReadyprivate classDecoder.FlagsReadyprivate classDecoder.MessageReadyprivate classDecoder.OneByteSizeReady-
Nested classes/interfaces inherited from interface zmq.io.coder.IDecoder
IDecoder.Step
-
-
Field Summary
Fields Modifier and Type Field Description private MsgAllocatorallocatorprotected IDecoder.StepeightByteSizeReadyprotected IDecoder.StepflagsReadyprotected MsginProgressprotected longmaxmsgsizeprotected IDecoder.StepmessageReadyprotected IDecoder.SteponeByteSizeReady
-
Constructor Summary
Constructors Constructor Description Decoder(Errno errno, int bufsize, long maxmsgsize, MsgAllocator allocator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Msgallocate(int size)protected IDecoder.Step.ResulteightByteSizeReady()protected IDecoder.Step.ResultflagsReady()protected IDecoder.Step.ResultmessageIncomplete()protected IDecoder.Step.ResultmessageReady()Msgmsg()protected IDecoder.Step.ResultoneByteSizeReady()protected IDecoder.Step.ResultsizeReady(long size)
-
-
-
Field Detail
-
maxmsgsize
protected final long maxmsgsize
-
inProgress
protected Msg inProgress
-
oneByteSizeReady
protected final IDecoder.Step oneByteSizeReady
-
eightByteSizeReady
protected final IDecoder.Step eightByteSizeReady
-
flagsReady
protected final IDecoder.Step flagsReady
-
messageReady
protected final IDecoder.Step messageReady
-
allocator
private final MsgAllocator allocator
-
-
Constructor Detail
-
Decoder
public Decoder(Errno errno, int bufsize, long maxmsgsize, MsgAllocator allocator)
-
-
Method Detail
-
sizeReady
protected final IDecoder.Step.Result sizeReady(long size)
-
allocate
protected Msg allocate(int size)
-
oneByteSizeReady
protected IDecoder.Step.Result oneByteSizeReady()
-
eightByteSizeReady
protected IDecoder.Step.Result eightByteSizeReady()
-
flagsReady
protected IDecoder.Step.Result flagsReady()
-
messageReady
protected IDecoder.Step.Result messageReady()
-
messageIncomplete
protected IDecoder.Step.Result messageIncomplete()
-
msg
public Msg msg()
-
-