public class DirectDocument2 extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
DirectDocument2.Metadata
Abstract representation of document metadata.
|
| Constructor and Description |
|---|
DirectDocument2()
Default document constructor.
|
DirectDocument2(File file) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getData()
Get the value of data.
|
DirectDocument2.Metadata |
getMetadata()
Get the value of metadata.
|
static String |
getSha1Hash(byte[] bytes)
Calculate the SHA-1 hash for the provided array of bytes.
|
static String |
getSha1Hash(String string)
Calculate the SHA-1 hash for the provided string.
|
void |
setData(byte[] data)
Set the value of data.
|
void |
setMetadata(DirectDocument2.Metadata metadata)
Set the value of metadata.
|
public DirectDocument2()
public DirectDocument2(File file) throws IOException
file - IOExceptionpublic DirectDocument2.Metadata getMetadata()
public void setMetadata(DirectDocument2.Metadata metadata)
metadata - The metadata to set.public byte[] getData()
public void setData(byte[] data)
data - The data to set;public static String getSha1Hash(byte[] bytes)
bytes - Bytes from which to calculate the SHA-1 hash.Copyright © 2010–2025. All rights reserved.