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
public class FileDocument extends CommonDocument
Document implementation stored on file-system.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class eu.europa.esig.dss.model.CommonDocument
absolutePath, base64EncodeDigestMap, mimeType, name
-
-
Constructor Summary
Constructors Constructor Description FileDocument(File file)Create a FileDocumentFileDocument(String path)Create a FileDocument
-
Method Summary
Modifier and Type Method Description booleanexists()StringgetAbsolutePath()Returns theStringrepresenting the absolute path to the encapsulated document.FilegetParentFile()InputStreamopenStream()Opens aInputStreamon theDSSDocumentcontents.-
Methods inherited from class eu.europa.esig.dss.model.CommonDocument
getDigest, getMimeType, getName, save, setAbsolutePath, setMimeType, setName, toString, writeTo
-
-
-
-
Method Detail
-
openStream
public InputStream openStream()
Description copied from interface:DSSDocumentOpens aInputStreamon theDSSDocumentcontents. The type of theInputStreamdepends on the type of theDSSDocument.- Returns:
- an
InputStream
-
exists
public boolean exists()
-
getParentFile
public File getParentFile()
-
getAbsolutePath
public String getAbsolutePath()
Description copied from interface:DSSDocumentReturns theStringrepresenting the absolute path to the encapsulated document.- Specified by:
getAbsolutePathin interfaceDSSDocument- Overrides:
getAbsolutePathin classCommonDocument- Returns:
Stringrepresenting the absolute path to the encapsulated document.
-
-