*/
private long bind;
- /**
- * Storage name
- */
+ /** Storage name */
protected String name;
- /**
- * User data.
- */
+ /** User data. */
private Object data;
- /**
- *
- */
protected Storage() {
this.bind = 0;
this.data = null;
- };
+ }
+ @Override
public String toString (){
return this.name;
*
* @return The storage object with the given name.
* @exception StorageNotFoundException if the name of the storage is not valid.
- * NativeException if the native version of this method failed.
+ * @exception NativeException if the native version of this method failed.
*/
- public native static Storage getByName(String name)
+ public static native Storage getByName(String name)
throws HostNotFoundException, NullPointerException, NativeException, StorageNotFoundException;
/**
* @return An array containing all the storages installed.
*
*/
- public native static Storage[] all();
+ public static native Storage[] all();
/**
* Class initializer, to initialize various JNI stuff