com.amarula.rp1600.sdk.scanner1d

## Class ScannerPort

- java.lang.Object
- - com.amarula.rp1600.sdk.util.SerialPort
  - - com.amarula.rp1600.sdk.scanner1d.ScannerPort

-     public class ScannerPort
      extends SerialPort

  Serial Port Extension that handle 1D-Scanner power supply on open/close

- - ### Field Summary

    - ### Fields inherited from class com.amarula.rp1600.sdk.util.SerialPort

      `mFd`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `ScannerPort()`

  - ### Method Summary

    All Methods Static Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `int` | `close()` Close a previously opened file descriptor
    `static boolean` | `setScannerEnabled(boolean enabled)`

    - ### Methods inherited from class com.amarula.rp1600.sdk.util.SerialPort

      `open, read, read, readln, setRTS, version, write`

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

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

- - ### Constructor Detail

    - #### ScannerPort

          public ScannerPort()
                      throws java.io.IOException

      Throws:
        `java.io.IOException`

  - ### Method Detail

    - #### close

          public int close()

      Description copied from class: `SerialPort`
      Close a previously opened file descriptor
      Overrides:
        `close` in class `SerialPort`
      Returns:
        0 on success

    - #### setScannerEnabled

          public static boolean setScannerEnabled(boolean enabled)