Module ibm.jzos
Package com.ibm.jzos

Class WtoMessage

java.lang.Object
com.ibm.jzos.WtoMessage
All Implemented Interfaces:
WtoConstants

public class WtoMessage extends Object implements WtoConstants
A simple data object/bean for holding a WTO message and its parameters. If the supplied message contains line-separator characters, the message will be broken into multiple WTO lines at the separators. If a single line is longer than the maximum WTO line length, it will also be broken into multiple WTO lines.

See: WtoConstants for definitions of route and descriptor codes and flags.

  • Constructor Details

    • WtoMessage

      public WtoMessage(String message)
      Construct an instance with a given WTO message
    • WtoMessage

      public WtoMessage(String message, int routcdeBitMask, int descrBitMask)
      Construct an instance with a given WTO message, routecode and descripter mask
  • Method Details

    • getDescrs

      public int[] getDescrs()
      Answer an integer array of descriptor codes.
      See Also:
    • setDescrs

      public void setDescrs(int descrsBitMask)
      Set the descriptor codes using a bit mask
      See Also:
    • setDescrs

      public void setDescrs(int[] descrs)
      Set the descriptor codes using an int array
      See Also:
    • getMessage

      public String getMessage()
      Answer the message string
    • getRoutcdes

      public int[] getRoutcdes()
      Answer the route codes
      See Also:
    • setRoutcdes

      public void setRoutcdes(int routcdesBitMask)
      Set the route codes using a integer bit mask.
      See Also:
    • setRoutcdes

      public void setRoutcdes(int[] routcdes)
      Set the route codes using a integer array.
      See Also:
    • getToken

      public int getToken()
      Answer the int token used to find this message for deletion
    • setToken

      public void setToken(int token)
      Set the int token used to find this message for deletion
    • getFlags

      public long getFlags()
      Answer the flags bit mask used to issue the message
      See Also:
    • setFlags

      public void setFlags(long flags)
      Answer the flags bit mask used to issue the message
      See Also: