litesoft
Diff Revisions
958
vs
959
for /trunk/Java/ScarPlus/src/com/esotericsoftware/filesupport/IFileFileProxy.java
|
@@ -4,42 +4,35 @@ |
4 |
4 |
|
|
5 |
5 |
|
import java.io.*; |
6 |
6 |
|
|
7 |
|
- |
public class IFileFileProxy implements IFile |
8 |
|
- |
{ |
|
7 |
+ |
public class IFileFileProxy implements IFile { |
9 |
8 |
|
private final File mFile; |
10 |
9 |
|
|
11 |
|
- |
public IFileFileProxy( File pFile ) |
12 |
|
- |
{ |
|
10 |
+ |
public IFileFileProxy( File pFile ) { |
13 |
11 |
|
mFile = pFile; |
14 |
12 |
|
} |
15 |
13 |
|
|
16 |
14 |
|
@Override |
17 |
|
- |
public boolean exists() |
18 |
|
- |
{ |
|
15 |
+ |
public boolean exists() { |
19 |
16 |
|
return mFile.exists(); |
20 |
17 |
|
} |
21 |
18 |
|
|
22 |
19 |
|
@Override |
23 |
|
- |
public boolean isDirectory() |
24 |
|
- |
{ |
|
20 |
+ |
public boolean isDirectory() { |
25 |
21 |
|
return mFile.isDirectory(); |
26 |
22 |
|
} |
27 |
23 |
|
|
28 |
24 |
|
@Override |
29 |
|
- |
public boolean canRead() |
30 |
|
- |
{ |
|
25 |
+ |
public boolean canRead() { |
31 |
26 |
|
return mFile.canRead(); |
32 |
27 |
|
} |
33 |
28 |
|
|
34 |
29 |
|
@Override |
35 |
|
- |
public String getPath() |
36 |
|
- |
{ |
|
30 |
+ |
public String getPath() { |
37 |
31 |
|
return mFile.getPath(); |
38 |
32 |
|
} |
39 |
33 |
|
|
40 |
34 |
|
@Override |
41 |
|
- |
public IFile getCanonicalFile() |
42 |
|
- |
{ |
|
35 |
+ |
public IFile getCanonicalFile() { |
43 |
36 |
|
return new IFileFileProxy( FileUtil.getCanonicalFile( mFile ) ); |
44 |
37 |
|
} |
45 |
38 |
|
} |