Package org.digidoc4j

Class LargeDataFile

java.lang.Object
org.digidoc4j.DataFile
org.digidoc4j.LargeDataFile
All Implemented Interfaces:
Serializable

public class LargeDataFile extends DataFile
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 Details

    • LargeDataFile

      public LargeDataFile(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.
      Parameters:
      stream - data file stream.
      fileName - name of the file
      mimeType - MIME type of the stream file, for example 'text/plain' or 'application/msword'