Package org.digidoc4j
Class LargeDataFile
java.lang.Object
org.digidoc4j.DataFile
org.digidoc4j.LargeDataFile
- All Implemented Interfaces:
Serializable
Handling large files from a stream to be stored temporarily on disk.
If you would like to add a large file from a stream to a container that is too large to be stored in memory.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionLargeDataFile
(InputStream stream, String fileName, String mimeType) Creates a data file from a stream that is going to be stored as a temporary file on the file system. -
Method Summary
Methods inherited from class org.digidoc4j.DataFile
calculateDigest, calculateDigest, calculateDigest, getBytes, getDocument, getFileSize, getId, getMediaType, getName, getStream, isFileEmpty, saveAs, saveAs, setDocument, setId, setMediaType
-
Constructor Details
-
LargeDataFile
Creates a data file from a stream that is going to be stored as a temporary file on the file system.- Parameters:
stream
- data file stream.fileName
- name of the filemimeType
- MIME type of the stream file, for example 'text/plain' or 'application/msword'
-