BarcodeSignature

Inheritance: java.lang.Object, com.groupdocs.signature.domain.signatures.BaseSignature

public class BarcodeSignature extends BaseSignature

Contains Barcode Signature properties.

Constructors

Constructor Description
BarcodeSignature(String signatureId) Initialize BarcodeSignature object with signature identifier that was obtained after search process.
BarcodeSignature() Initialize BarcodeSignature with default parameters.

Methods

Method Description
getEncodeType() Specifies the Barcode Encode Type.
getText() Specifies text of Barcode.
getFormat() Specifies the format of Barcode signature image.
getContent() Specifies Barcode binary data image content of type Format (#getFormat.getFormat/#setFormat(FileType).setFormat(FileType)).
equals(Object signature) Overwrites Equals method to compare signature properties
hashCode() Overrides GetHashCode method
deepClone() Clone Barcode Signature instance.
setContent(SignOptions signOptions, BufferedImage image)

BarcodeSignature(String signatureId)

public BarcodeSignature(String signatureId)

Initialize BarcodeSignature object with signature identifier that was obtained after search process. This unique identifier is used to find additional properties for this signature from document signature information layer.

Parameters:

Parameter Type Description
signatureId java.lang.String Unique signature identifier obtained by Sign or Search method of Signature class Signature.

BarcodeSignature()

public BarcodeSignature()

Initialize BarcodeSignature with default parameters.

getEncodeType()

public final BarcodeType getEncodeType()

Specifies the Barcode Encode Type.

Returns: BarcodeType

getText()

public final String getText()

Specifies text of Barcode.

Returns: java.lang.String

getFormat()

public final FileType getFormat()

Specifies the format of Barcode signature image.

Returns: FileType

getContent()

public final byte[] getContent()

Specifies Barcode binary data image content of type Format (#getFormat.getFormat/#setFormat(FileType).setFormat(FileType)). By default this property will not be set. Use property BarcodeSearchOptions.ReturnContent (BarcodeSearchOptions.getReturnContent/BarcodeSearchOptions.setReturnContent(boolean)) to enable this feature.

Returns: byte[]

equals(Object signature)

public boolean equals(Object signature)

Overwrites Equals method to compare signature properties

Parameters:

Parameter Type Description
signature java.lang.Object Signature object to compare with.

Returns: boolean - Returns true if passed signature object has same type and all its properties are equal to this instance properties.

hashCode()

public int hashCode()

Overrides GetHashCode method

Returns: int - Signature hash code

deepClone()

public Object deepClone()

Clone Barcode Signature instance.

Returns: java.lang.Object - Returns cloned Barcode Signature instance.

setContent(SignOptions signOptions, BufferedImage image)

public final void setContent(SignOptions signOptions, BufferedImage image)

Parameters:

Parameter Type Description
signOptions SignOptions
image java.awt.image.BufferedImage