BarcodeSignature
Leave feedback
On this page
Inheritance: java.lang.Object, com.groupdocs.signature.domain.signatures.BaseSignature
public class BarcodeSignature extends BaseSignature
Contains Barcode Signature properties.
| Constructor | Description |
|---|---|
| BarcodeSignature(String signatureId) | Initialize BarcodeSignature object with signature identifier that was obtained after search process. |
| BarcodeSignature() | Initialize BarcodeSignature with default parameters. |
| 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) |
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. |
public BarcodeSignature()
Initialize BarcodeSignature with default parameters.
public final BarcodeType getEncodeType()
Specifies the Barcode Encode Type.
Returns: BarcodeType
public final String getText()
Specifies text of Barcode.
Returns: java.lang.String
public final FileType getFormat()
Specifies the format of Barcode signature image.
Returns: FileType
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[]
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.
public int hashCode()
Overrides GetHashCode method
Returns: int - Signature hash code
public Object deepClone()
Clone Barcode Signature instance.
Returns: java.lang.Object - Returns cloned Barcode Signature instance.
public final void setContent(SignOptions signOptions, BufferedImage image)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| signOptions | SignOptions | |
| image | java.awt.image.BufferedImage |
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.