|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.latexdraw.util.LFileUtils
public final class LFileUtils
Defines some workarounds to deal with the problem of the renameto function.
The renameto function cannot rename a file from one filesystem to one other.
This file is part of LaTeXDraw
Copyright (c) 2005-2012 Arnaud BLOUIN
LaTeXDraw is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
LaTeXDraw is distributed without any warranty; without even the
implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the GNU General Public License for more details.
09/22/09
Field Summary | |
---|---|
static LFileUtils |
INSTANCE
The singleton. |
Constructor Summary | |
---|---|
private |
LFileUtils()
|
Method Summary | |
---|---|
boolean |
copy(java.io.File fromFile,
java.io.File toFile)
Copies a file. |
java.io.File |
createTempDir()
Creates a temporary directory that will be used to contains temporary latex files. |
boolean |
move(java.io.File fromFile,
java.io.File toFile)
Moves a file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final LFileUtils INSTANCE
Constructor Detail |
---|
private LFileUtils()
Method Detail |
---|
public java.io.File createTempDir()
public boolean copy(java.io.File fromFile, java.io.File toFile)
fromFile
- The existing FiletoFile
- The new File
true
if and only if the renaming succeeded;
false
otherwisepublic boolean move(java.io.File fromFile, java.io.File toFile)
fromFile
- The existing FiletoFile
- The new File
true
if and only if the renaming succeeded;
false
otherwise
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |