インタフェース Secs1Message
- すべてのスーパーインタフェース:
SecsMessage
public interface Secs1Message extends SecsMessage
SECS-I Message.
-
メソッドの概要
修飾子とタイプ メソッド 説明 boolean
isValidBlocks()
Returns true if All Secs1Blocks is valid.static Secs1Message
of(byte[] header10Bytes)
Returns SECS-I Message, HEAD-ONLY Message builder.static Secs1Message
of(byte[] header10Bytes, Secs2 body)
Returns SECS-I Message.static Secs1Message
of(java.util.List<? extends Secs1MessageBlock> blocks)
Returns Secs-I Message.boolean
rbit()
Returns Message R-Bit.java.util.List<Secs1MessageBlock>
toBlocks()
Returns Message blocks.インタフェースから継承されたメソッド com.shimizukenta.secs.SecsMessage
deviceId, getFunction, getStream, header10Bytes, secs2, sessionId, toJson, wbit
-
メソッドの詳細
-
rbit
boolean rbit()Returns Message R-Bit.- 戻り値:
- true if has r-bit
-
toBlocks
java.util.List<Secs1MessageBlock> toBlocks()Returns Message blocks.- 戻り値:
- List of Message blocks
-
isValidBlocks
boolean isValidBlocks()Returns true if All Secs1Blocks is valid.- 戻り値:
- true if All Secs1Blocks is valid.
-
of
Returns SECS-I Message, HEAD-ONLY Message builder.- パラメータ:
header10Bytes
- the HEAD-10-bytes.- 戻り値:
- SECS-I Message instance
- 例外:
java.lang.NullPointerException
- if input nullSecs1MessageHeaderByteLengthIllegalArgumentException
- if byte length is NOT equals 10
-
of
Returns SECS-I Message.- パラメータ:
header10Bytes
- the HEAD-10-bytes.body
- the body SECS-II- 戻り値:
- SECS-I Message instance
- 例外:
Secs1TooBigMessageBodyException
- if SECS-II body is too bigjava.lang.NullPointerException
- if input nullSecs1MessageHeaderByteLengthIllegalArgumentException
- if byte length is NOT equals 10Secs1TooBigMessageBodyException
- if body is too big
-
of
Returns Secs-I Message.- パラメータ:
blocks
- the Secs-I Message blocks- 戻り値:
- Secs-I Message instance
- 例外:
java.lang.NullPointerException
- if blocks is null.Secs1MessageEmptyBlockListIllegalArgumentException
- if blocks is empty
-