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
also unifies the native path between cmake and java on windows
[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 89c7b975d4f35a55fd506bb72af0696cb22e8b69..bd19252e4db1c27fe4d829eca240b50e3492c233 100644
(file)
--- a/
src/bindings/java/org/simgrid/msg/File.java
+++ b/
src/bindings/java/org/simgrid/msg/File.java
@@
-1,16
+1,12
@@
+/* Copyright (c) 2012-2014. The SimGrid Team.
+ * All rights reserved. */
+
+/* This program is free software; you can redistribute it and/or modify it
+ * under the terms of the license (GNU LGPL) which comes with this package. */
+
package org.simgrid.msg;
package org.simgrid.msg;
-/**
-* Copyright (c) 2012-2013. The SimGrid Team.
-* All rights reserved.
-*
-* This program is free software; you can redistribute
-* it and/or modify it under the terms of the license
-* (GNU LGPL) which comes with this package.
-*
-*/
public class File {
public class File {
- protected String storage;
/**
* 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
@@
-19,22
+15,19
@@
public class File {
private long bind = 0;
/**
* Constructor, opens the file.
private long bind = 0;
/**
* Constructor, opens the file.
- * @param storage is the name where you can find the file descriptor
* @param path is the file location on the storage
*/
* @param path is the file location on the storage
*/
- public File(String storage, String path) {
- this.storage = storage;
- open(storage, path);
+ public File(String path) {
+ open(path);
}
protected void finalize() {
}
/**
}
protected void finalize() {
}
/**
- * Opens the file whose name is the string pointed to by path.
- * @param storage is the name where you can find the file descriptor
+ * Opens the file whose name is the string pointed to by path.
* @param path is the file location on the storage
*/
* @param path is the file location on the storage
*/
- protected native void open(String
storage, String
path);
+ protected native void open(String path);
/**
* Read elements of a file.
* @param size of each element
/**
* Read elements of a file.
* @param size of each element
@@
-51,7
+44,7
@@
public class File {
* Close the file.
*/
public native void close();
* Close the file.
*/
public native void close();
-
+
/**
* Class initializer, to initialize various JNI stuff
*/
/**
* Class initializer, to initialize various JNI stuff
*/