Package eu.europa.esig.dss.model
Class FileDocument
java.lang.Object
eu.europa.esig.dss.model.CommonDocument
eu.europa.esig.dss.model.FileDocument
- All Implemented Interfaces:
DSSDocument,Serializable
Document implementation stored on file-system.
- See Also:
-
Field Summary
Fields inherited from class eu.europa.esig.dss.model.CommonDocument
digestMap, mimeType, name -
Constructor Summary
ConstructorsConstructorDescriptionFileDocument(File file) Create a FileDocumentFileDocument(String path) Create a FileDocument -
Method Summary
Methods inherited from class eu.europa.esig.dss.model.CommonDocument
getDigest, getDigestValue, getMimeType, getName, save, setMimeType, setName, toString, writeTo
-
Constructor Details
-
FileDocument
-
FileDocument
-
-
Method Details
-
openStream
Description copied from interface:DSSDocumentOpens aInputStreamon theDSSDocumentcontents. The type of theInputStreamdepends on the type of theDSSDocument.- Returns:
- an
InputStream
-
exists
public boolean exists()Checks if the file exists- Returns:
- TRUE if the file exists in the file system, FALSE otherwise
-
getFile
-
getAbsolutePath
Returns theStringrepresenting the absolute path to the encapsulated document.- Returns:
Stringrepresenting the absolute path to the encapsulated document.
-