Class MemoryContent.MutableNuller

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

protected static class MemoryContent.MutableNuller extends Object implements Closeable
This class implements the cleanup (nulling the byte array) without referring to the RereadableContent it cleans up.
  • Constructor Details

    • MutableNuller

      protected MutableNuller()
  • Method Details

    • setMutable

      protected void setMutable(org.apache.commons.lang3.mutable.Mutable<?> mutable)
      Sets the mutable since it is not created when creating this MutableNuller.
      Parameters:
      mutable - The mutable to set to null when closing.
    • close

      public void close() throws IOException
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Throws:
      IOException