public abstract class CommonDocument extends Object implements DSSDocument
| Modifier and Type | Field and Description |
|---|---|
protected String |
absolutePath |
protected EnumMap<DigestAlgorithm,String> |
base64EncodeDigestMap |
protected MimeType |
mimeType |
protected String |
name |
| Constructor and Description |
|---|
CommonDocument() |
| Modifier and Type | Method and Description |
|---|---|
String |
getAbsolutePath() |
String |
getDigest(DigestAlgorithm digestAlgorithm) |
MimeType |
getMimeType() |
String |
getName() |
void |
save(String path) |
void |
setAbsolutePath(String absolutePath) |
void |
setMimeType(MimeType mimeType) |
void |
setName(String name) |
String |
toString() |
void |
writeTo(OutputStream stream) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitopenStreamprotected EnumMap<DigestAlgorithm,String> base64EncodeDigestMap
protected MimeType mimeType
protected String name
protected String absolutePath
public void save(String path) throws IOException
save in interface DSSDocumentIOExceptionpublic void writeTo(OutputStream stream) throws IOException
writeTo in interface DSSDocumentIOExceptionpublic MimeType getMimeType()
getMimeType in interface DSSDocumentpublic void setMimeType(MimeType mimeType)
setMimeType in interface DSSDocumentpublic String getName()
getName in interface DSSDocumentpublic void setName(String name)
setName in interface DSSDocumentpublic String getAbsolutePath()
getAbsolutePath in interface DSSDocumentpublic void setAbsolutePath(String absolutePath)
public String getDigest(DigestAlgorithm digestAlgorithm)
getDigest in interface DSSDocumentCopyright © 2019. All rights reserved.