Package de.aristaflow.adept2.util.io
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 theRereadableContent
it cleans up.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
MutableNuller()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
protected void
setMutable(org.apache.commons.lang3.mutable.Mutable<?> mutable)
Sets the mutable since it is not created when creating thisMutableNuller
.
-
-
-
Method Detail
-
setMutable
protected void setMutable(org.apache.commons.lang3.mutable.Mutable<?> mutable)
Sets the mutable since it is not created when creating thisMutableNuller
.- Parameters:
mutable
- The mutable to set tonull
when closing.
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
-