public interface DSSDocument extends Serializable
| Modifier and Type | Method and Description |
|---|---|
String |
getAbsolutePath()
Returns the
String representing the absolute path to the encapsulated document. |
String |
getDigest(DigestAlgorithm digestAlgorithm)
This method returns the encoded digest value of the current
DSSDocument using the base64 algorithm. |
MimeType |
getMimeType()
Returns the mime-type of the
DSSDocument. |
String |
getName()
Returns the name of the document.
|
InputStream |
openStream()
Opens a
InputStream on the DSSDocument contents. |
void |
save(String filePath)
Save the content of the DSSDocument to the file.
|
void |
setMimeType(MimeType mimeType)
This method sets the mime-type of the
DSSDocument. |
void |
setName(String name)
This method sets the name of the
DSSDocument. |
void |
writeTo(OutputStream stream)
Writes the content of the document to the provided OutputStream
|
InputStream openStream() throws DSSException
InputStream on the DSSDocument contents. The type of the InputStream depends on
the type of the DSSDocument.InputStreamDSSException - if any error happensvoid writeTo(OutputStream stream) throws IOException
stream - the output stream where to writeIOException - if any IO error happensString getName()
DSSDocument was built based on the File then the file
name is returned.String representing the name of the current DSSDocumentvoid setName(String name)
DSSDocument.name - the document nameString getAbsolutePath()
String representing the absolute path to the encapsulated document.String representing the absolute path to the encapsulated document.MimeType getMimeType()
DSSDocument.MimeTypevoid setMimeType(MimeType mimeType)
DSSDocument.mimeType - MimeTypevoid save(String filePath) throws IOException
filePath - the path to the file to be createdIOException - if any IO error happensString getDigest(DigestAlgorithm digestAlgorithm)
DSSDocument using the base64 algorithm.digestAlgorithm - DigestAlgorithmStringCopyright © 2018. All rights reserved.