simplified the argument interface. cleaned up some code
This commit is contained in:
parent
6612a77d66
commit
a4f7f33b74
3 changed files with 43 additions and 51 deletions
|
@ -28,7 +28,7 @@
|
|||
*
|
||||
* This file is part of the Contiki operating system.
|
||||
*
|
||||
* $Id: CoffeeFS.java,v 1.2 2009/08/04 10:39:13 nvt-se Exp $
|
||||
* $Id: CoffeeFS.java,v 1.3 2009/08/04 15:19:08 nvt-se Exp $
|
||||
*
|
||||
* @author Nicolas Tsiftes
|
||||
*
|
||||
|
@ -178,14 +178,14 @@ public class CoffeeFS {
|
|||
files.remove(file.getName());
|
||||
}
|
||||
|
||||
public boolean extractFile(String inputFile, String outputFile) throws IOException {
|
||||
CoffeeFile file = files.get(inputFile);
|
||||
public boolean extractFile(String filename) throws IOException {
|
||||
CoffeeFile file = files.get(filename);
|
||||
|
||||
if(file == null) {
|
||||
return false;
|
||||
}
|
||||
|
||||
file.saveContents(outputFile);
|
||||
file.saveContents(filename);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue