com.datecs.universalreader

## Class UniversalReader.BarcodeReader

- java.lang.Object
- - com.datecs.universalreader.UniversalReader.BarcodeReader

- Enclosing class:
    UniversalReader

      public final class UniversalReader.BarcodeReader
      extends java.lang.Object

  This class provides functionality for Barcode reader.

- - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `java.lang.String` | `read()` Reads barcode.

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

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

- - ### Method Detail

    - #### read

          public java.lang.String read()
                                throws java.io.IOException,
                                       UniversalReaderException

      Reads barcode.

      The first symbol of returned barcode is the type of barcode.

      The barcode reader starts the projector for ~6 seconds and in that time the barcode must be read. Otherwise a `UniversalReaderException` shall be thrown with error code `UniversalReader.ERROR_BARCODE_NODATA`.

      Returns:
        the data barcode, where the first symbol is type of barcode.
      Throws:
        `java.io.IOException` - if an I/O error occurs.
        `UniversalReaderException` - if an error occurs during execution.