Class FileContent

java.lang.Object
de.aristaflow.adept2.util.io.RereadableContent
de.aristaflow.adept2.util.io.FileContent
All Implemented Interfaces:
Closeable, AutoCloseable

public class FileContent extends RereadableContent
A RereadableContent based on a file.
  • Field Details

    • file

      protected final Path file
      The file containing the content of a RereadableContent.
  • Constructor Details

    • FileContent

      public FileContent(SwitchingOutputStream sos) throws IOException
      Creates a new RereadableContent based on the designated output stream.
      Parameters:
      sos - The SwitchingOutputStream providing the data as Path, its size and its SHA-512 hash.
      Throws:
      IOException - If the designated output stream has not been closed yet, an IOException will be thrown.
  • Method Details