org.simgrid.msg
public class File extends java.lang.Object
| Modifier and Type | Field and Description | 
|---|---|
| protected java.lang.String | storage | 
| Constructor and Description | 
|---|
| File(java.lang.String storage,
    java.lang.String path)Constructor, opens the file. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | close()Close the file. | 
| protected void | finalize() | 
| static void | nativeInit()Class initializer, to initialize various JNI stuff | 
| protected void | open(java.lang.String storage,
    java.lang.String path)Opens the file whose name is the string pointed to by path. | 
| long | read(long size,
    long nMemb)Read elements of a file. | 
| long | write(long size,
     long nMemb)Write elements into a file. | 
public File(java.lang.String storage,
    java.lang.String path)
storage - is the name where you can find the file descriptorpath - is the file location on the storageprotected void finalize()
finalize in class java.lang.Objectprotected void open(java.lang.String storage,
        java.lang.String path)
storage - is the name where you can find the file descriptorpath - is the file location on the storagepublic long read(long size,
        long nMemb)
size - of each elementnMemb - is the number of elements of data to writepublic long write(long size,
         long nMemb)
size - of each elementnMemb - is the number of elements of data to writepublic void close()
public static void nativeInit()