com.unitech.lib.reader.params

## Class DisplayOutput

- java.lang.Object
- - com.unitech.lib.reader.params.DisplayOutput

-     public class DisplayOutput
      extends Object

  The DisplayOutput enumeration represents the type of device associated with the SDK.

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `byte` | `parameter` The parameter for the display output
    `String` | `sdata`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `DisplayOutput()`
    `DisplayOutput(byte p, String s)`

  - ### Method Summary

    All Methods Static Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `byte` | `getCharPosition()`
    `byte` | `getLinePosition()`
    `String` | `getMessage()`
    `boolean` | `isClearScreen()`
    `void` | `setCharPosition(byte position)`
    `void` | `setClearScreen(boolean clear)`
    `void` | `setLinePosition(byte linePosition)`
    `void` | `setMessage(String message)`
    `static byte[]` | `stringToBytesASCII(String str)` Returns the ASCII of String.
    `String` | `toString()`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Field Detail

    - #### parameter

          public byte parameter

      The parameter for the display output. - Bits 0-3: Character position (0~15) - Bit 5: Clear screen before output (0: Disable; 1: Enable) - Bits 6-7: Line position (1~3)

    - #### sdata

          public String sdata

  - ### Constructor Detail

    - #### DisplayOutput

          public DisplayOutput()

    - #### DisplayOutput

          public DisplayOutput(byte p,
                               String s)

  - ### Method Detail

    - #### getCharPosition

          public byte getCharPosition()

    - #### setCharPosition

          public void setCharPosition(byte position)

    - #### isClearScreen

          public boolean isClearScreen()

    - #### setClearScreen

          public void setClearScreen(boolean clear)

    - #### getLinePosition

          public byte getLinePosition()

    - #### setLinePosition

          public void setLinePosition(byte linePosition)

    - #### getMessage

          public String getMessage()

    - #### setMessage

          public void setMessage(String message)

    - #### stringToBytesASCII

          public static byte[] stringToBytesASCII(String str)

      Returns the ASCII of String.
      Parameters:
        `str` - The String want to convert
      Returns:
        The ASCII array

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`