Class NativeResourceHolder
- java.lang.Object
-
- com.sedmelluq.lava.common.natives.NativeResourceHolder
-
public abstract class NativeResourceHolder extends java.lang.ObjectAbstract instance of a class which holds native resources that must be freed.
-
-
Constructor Summary
Constructors Constructor Description NativeResourceHolder()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected voidcheckNotReleased()Assert that the native resources have not been freed.voidclose()Free up native resources of the decoder.protected voidfinalize()protected abstract voidfreeResources()Free the native resources.
-
-
-
Method Detail
-
checkNotReleased
protected void checkNotReleased()
Assert that the native resources have not been freed.
-
close
public void close()
Free up native resources of the decoder. Using other methods after this will throw IllegalStateException.
-
freeResources
protected abstract void freeResources()
Free the native resources.
-
finalize
protected void finalize() throws java.lang.Throwable- Overrides:
finalizein classjava.lang.Object- Throws:
java.lang.Throwable
-
-