パッケージ com.shimizukenta.secs.sml

インタフェース SmlMessage


public interface SmlMessage
This interface is implementation of SML (Peer-Group).

Instances of this class are immutable.

  • メソッドの概要

    修飾子とタイプ メソッド 説明
    static SmlMessage from​(java.io.Reader reader)
    推奨されていません。
    static SmlMessage from​(java.lang.CharSequence cs)
    推奨されていません。
    static SmlMessage from​(java.nio.file.Path path)
    推奨されていません。
    int getFunction()
    Returns SML SECS-II-Function-Number.
    int getStream()
    Returns SML SECS-II-Stream-Number.
    static SmlMessage of​(java.io.Reader reader)
    Returns SmlMessage instance of Reader.
    static SmlMessage of​(java.lang.CharSequence cs)
    Returns SmlMessage instance of character sequence.
    static SmlMessage of​(java.nio.file.Path path)
    Returns SmlMessage instance of File-path.
    Secs2 secs2()
    Returns SML SECS-II-Data.
    boolean wbit()
    Returns SML SECS-II-WBit.
  • メソッドの詳細

    • getStream

      int getStream()
      Returns SML SECS-II-Stream-Number.
      戻り値:
      stream-number
    • getFunction

      int getFunction()
      Returns SML SECS-II-Function-Number.
      戻り値:
      function-number
    • wbit

      boolean wbit()
      Returns SML SECS-II-WBit.
      戻り値:
      true if Wbit is 1
    • secs2

      Secs2 secs2()
      Returns SML SECS-II-Data.
      戻り値:
      SECS-II-Data
    • of

      static SmlMessage of​(java.lang.CharSequence cs) throws SmlParseException
      Returns SmlMessage instance of character sequence.
      パラメータ:
      cs - the SML character sequence
      戻り値:
      SML-Message instance.
      例外:
      SmlParseException - if parse failed
    • of

      static SmlMessage of​(java.io.Reader reader) throws SmlParseException, java.io.IOException
      Returns SmlMessage instance of Reader.
      パラメータ:
      reader - the reader
      戻り値:
      SmlMessage
      例外:
      SmlParseException - if parse failed
      java.io.IOException - if IO failed
    • of

      static SmlMessage of​(java.nio.file.Path path) throws SmlParseException, java.io.IOException
      Returns SmlMessage instance of File-path.
      パラメータ:
      path - SML file path
      戻り値:
      SmlMessage
      例外:
      SmlParseException - if parse failed
      java.io.IOException - if IO failed
    • from

      @Deprecated static SmlMessage from​(java.lang.CharSequence cs) throws SmlParseException
      推奨されていません。
      Returns SmlMessage instance from character sequence.
      パラメータ:
      cs - the SML character sequence
      戻り値:
      SML-Message instance.
      例外:
      SmlParseException - if parse failed
    • from

      @Deprecated static SmlMessage from​(java.io.Reader reader) throws SmlParseException, java.io.IOException
      推奨されていません。
      Returns SmlMessage instance from Reader.
      パラメータ:
      reader - the reader
      戻り値:
      SmlMessage
      例外:
      SmlParseException - if parse failed
      java.io.IOException - if IO failed
    • from

      @Deprecated static SmlMessage from​(java.nio.file.Path path) throws SmlParseException, java.io.IOException
      推奨されていません。
      Returns SmlMessage instance from File-path.
      パラメータ:
      path - the SMl file path
      戻り値:
      SmlMessage
      例外:
      SmlParseException - if parse failed
      java.io.IOException - if IO failed