Class VerifyCloseable

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable
    Direct Known Subclasses:
    CameraDevice, FrameOutput, Player, VideoFileRecorder, ViewOutput

    public abstract class VerifyCloseable
    extends java.lang.Object
    implements java.io.Closeable
    Helps detect unclosed resources that can lead to memory leaks and instability
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected boolean mIsClosed  
      protected java.lang.String mTag  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected VerifyCloseable​(java.lang.String tag)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      protected void finalize()  
      • Methods inherited from class java.lang.Object

        clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • mIsClosed

        protected boolean mIsClosed
      • mTag

        protected final java.lang.String mTag
    • Constructor Detail

      • VerifyCloseable

        protected VerifyCloseable​(java.lang.String tag)
    • Method Detail

      • close

        @CallSuper
        public void close()
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
      • finalize

        protected void finalize()
                         throws java.lang.Throwable
        Overrides:
        finalize in class java.lang.Object
        Throws:
        java.lang.Throwable