Class MemoryContent

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

public class MemoryContent extends RereadableContent
A RereadableContent based on memory data.
  • Constructor Details

    • MemoryContent

      public MemoryContent(SwitchingOutputStream sos) throws IOException
      Creates a new RereadableContent based on the designated output stream.
      Parameters:
      sos - The SwitchingOutputStream providing the data, 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