public class Device
extends java.lang.Object
implements java.io.Closeable
Modifier and Type | Field and Description |
---|---|
protected java.util.ArrayList<java.io.Closeable> |
closeList |
Constructor and Description |
---|
Device() |
Modifier and Type | Method and Description |
---|---|
void |
close()
Close the sensor.
|
protected void |
releaseOnClose(java.io.Closeable res)
Add the specified resource to the list of objects that will be closed
when the sensor is closed.
|
protected void releaseOnClose(java.io.Closeable res)
res
- public void close()
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable