Class MemoryContent

    • Constructor Detail

      • 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.