DocumentMetadata

public class DocumentMetadata

Use this class to pass additional information for a document when uploading it to the Gini API.

Besides the predefined metadata fields you may also add custom fields.

Constructors

DocumentMetadata
Link copied to clipboard
void DocumentMetadata()
Create a new instance.
DocumentMetadata
Link copied to clipboard
void DocumentMetadata(@Nullable() CharsetEncoder charsetEncoder)

Functions

add
Link copied to clipboard
void add(@NonNull() String name, @NonNull() String value)
Add a custom metadata field.
getMetadata
Link copied to clipboard
Map<String, StringgetMetadata()
isASCIIEncodable
Link copied to clipboard
boolean isASCIIEncodable(@NonNull() String string)
setBranchId
Link copied to clipboard
void setBranchId(@NonNull() String branchId)
Set a branch identifier to associate the document with a particular branch.

Properties

BRANCH_ID_HEADER_FIELD_NAME
Link copied to clipboard
public final static String BRANCH_ID_HEADER_FIELD_NAME
HEADER_FIELD_NAME_PREFIX
Link copied to clipboard
public final static String HEADER_FIELD_NAME_PREFIX