A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' of git+ssh://scm.gforge.inria.fr//gitroot/simgrid/simgrid
[simgrid.git]
/
src
/
bindings
/
java
/
org
/
simgrid
/
msg
/
File.java
diff --git
a/src/bindings/java/org/simgrid/msg/File.java
b/src/bindings/java/org/simgrid/msg/File.java
index
b1f13f9
..
23283cf
100644
(file)
--- a/
src/bindings/java/org/simgrid/msg/File.java
+++ b/
src/bindings/java/org/simgrid/msg/File.java
@@
-7,9
+7,9
@@
package org.simgrid.msg;
public class File {
package org.simgrid.msg;
public class File {
- public final int SEEK_SET = 0;
- public final int SEEK_CUR = 1;
- public final int SEEK_END = 2;
+ public
static
final int SEEK_SET = 0;
+ public
static
final int SEEK_CUR = 1;
+ public
static
final int SEEK_END = 2;
/**
* Represents the bind between the java comm and the
* native C comm. You must never access it, since it is
/**
* Represents the bind between the java comm and the
* native C comm. You must never access it, since it is
@@
-23,10
+23,7
@@
public class File {
public File(String path) {
open(path);
}
public File(String path) {
open(path);
}
- @Override
- protected void finalize() {
- }
/**
* Opens the file whose name is the string pointed to by path.
* @param path is the file location on the storage
/**
* Opens the file whose name is the string pointed to by path.
* @param path is the file location on the storage
@@
-35,13
+32,16
@@
public class File {
/**
* Read elements of a file.
* @param size of each element
/**
* Read elements of a file.
* @param size of each element
- * @param nMemb is the number of elements of data to write
+ * @param nMemb is the number of elements of data to write
+ * @return the actually read size
*/
public native long read(long size, long nMemb);
*/
public native long read(long size, long nMemb);
+
/**
* Write elements into a file.
* @param size of each element
* @param nMemb is the number of elements of data to write
/**
* Write elements into a file.
* @param size of each element
* @param nMemb is the number of elements of data to write
+ * @return the actually written size
*/
public native long write(long size, long nMemb);
/**
*/
public native long write(long size, long nMemb);
/**