
public abstract 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 sensors.
|
protected void |
releaseOnClose(java.io.Closeable res)
Add the specified resource to the list of objects that will be closed
when the sensors is closed.
|
protected void releaseOnClose(java.io.Closeable res)
res - resourcepublic void close()
close in interface java.io.Closeableclose in interface java.lang.AutoCloseable