public interface NativeResource
Closeable) that has been registered into the
simulator using NativeInterface.registerNativeResource(Closeable).
A NativeResource is identified by an ID that can be retrieved by
calling getResourceId().
The method NativeInterface.getNativeResource(int) can be used to find
a NativeResource from its ID.
Use the method NativeInterface.getNativeResourceCloseFunctionId() to
retrieve a close function ID that can be passed by the application to the
method SNI.closeOnGC().
| Modifier and Type | Method and Description |
|---|---|
java.io.Closeable |
getResource()
Returns the
Closeable that has been given to the method
NativeInterface.registerNativeResource(Closeable). |
int |
getResourceId()
Returns the ID of this native resource.
|
int getResourceId()
java.io.Closeable getResource()
Closeable that has been given to the method
NativeInterface.registerNativeResource(Closeable).