Mercurial > projects > dwt-linux
comparison dwt/dwthelper/File.d @ 238:380bad9f6852
reverted char[] to String
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Mon, 05 May 2008 00:42:55 +0200 |
parents | 62a654ba5276 |
children | e10de397beb1 |
comparison
equal
deleted
inserted
replaced
237:98b80b00af79 | 238:380bad9f6852 |
---|---|
10 static import tango.io.FileSystem; | 10 static import tango.io.FileSystem; |
11 | 11 |
12 public class File { | 12 public class File { |
13 | 13 |
14 public static char separatorChar; | 14 public static char separatorChar; |
15 public static char[] separator; | 15 public static String separator; |
16 public static char pathSeparatorChar; | 16 public static char pathSeparatorChar; |
17 public static char[] pathSeparator; | 17 public static String pathSeparator; |
18 | 18 |
19 private tango.io.FilePath.FilePath mFilePath; | 19 private tango.io.FilePath.FilePath mFilePath; |
20 | 20 |
21 static this(){ | 21 static this(){ |
22 separator = tango.io.FileConst.FileConst.PathSeparatorString; | 22 separator = tango.io.FileConst.FileConst.PathSeparatorString; |
23 separatorChar = tango.io.FileConst.FileConst.PathSeparatorChar; | 23 separatorChar = tango.io.FileConst.FileConst.PathSeparatorChar; |
24 pathSeparator = tango.io.FileConst.FileConst.SystemPathString; | 24 pathSeparator = tango.io.FileConst.FileConst.SystemPathString; |
25 pathSeparatorChar = tango.io.FileConst.FileConst.SystemPathChar; | 25 pathSeparatorChar = tango.io.FileConst.FileConst.SystemPathChar; |
26 } | 26 } |
27 | 27 |
28 public this ( char[] pathname ){ | 28 public this ( String pathname ){ |
29 mFilePath = new tango.io.FilePath.FilePath( pathname ); | 29 mFilePath = new tango.io.FilePath.FilePath( pathname ); |
30 } | 30 } |
31 | 31 |
32 public this ( char[] parent, char[] child ){ | 32 public this ( String parent, String child ){ |
33 mFilePath = new tango.io.FilePath.FilePath( tango.io.FilePath.FilePath.join( parent, child ) ); | 33 mFilePath = new tango.io.FilePath.FilePath( tango.io.FilePath.FilePath.join( parent, child ) ); |
34 } | 34 } |
35 | 35 |
36 public this ( dwt.dwthelper.File.File parent, char[] child ){ | 36 public this ( dwt.dwthelper.File.File parent, String child ){ |
37 mFilePath = new tango.io.FilePath.FilePath( tango.io.FilePath.FilePath.join( parent.mFilePath.toString, child ) ); | 37 mFilePath = new tango.io.FilePath.FilePath( tango.io.FilePath.FilePath.join( parent.mFilePath.toString, child ) ); |
38 } | 38 } |
39 | 39 |
40 public int getPrefixLength(){ | 40 public int getPrefixLength(){ |
41 implMissing( __FILE__, __LINE__ ); | 41 implMissing( __FILE__, __LINE__ ); |
42 return 0; | 42 return 0; |
43 } | 43 } |
44 | 44 |
45 public char[] getName(){ | 45 public String getName(){ |
46 implMissing( __FILE__, __LINE__ ); | 46 implMissing( __FILE__, __LINE__ ); |
47 return null; | 47 return null; |
48 } | 48 } |
49 | 49 |
50 public char[] getParent(){ | 50 public String getParent(){ |
51 implMissing( __FILE__, __LINE__ ); | 51 implMissing( __FILE__, __LINE__ ); |
52 return null; | 52 return null; |
53 } | 53 } |
54 | 54 |
55 public dwt.dwthelper.File.File getParentFile(){ | 55 public dwt.dwthelper.File.File getParentFile(){ |
56 implMissing( __FILE__, __LINE__ ); | 56 implMissing( __FILE__, __LINE__ ); |
57 return null; | 57 return null; |
58 } | 58 } |
59 | 59 |
60 public char[] getPath(){ | 60 public String getPath(){ |
61 implMissing( __FILE__, __LINE__ ); | 61 implMissing( __FILE__, __LINE__ ); |
62 return null; | 62 return null; |
63 } | 63 } |
64 | 64 |
65 public bool isAbsolute(){ | 65 public bool isAbsolute(){ |
66 implMissing( __FILE__, __LINE__ ); | 66 implMissing( __FILE__, __LINE__ ); |
67 return false; | 67 return false; |
68 } | 68 } |
69 | 69 |
70 public char[] getAbsolutePath(){ | 70 public String getAbsolutePath(){ |
71 return tango.io.FileSystem.FileSystem.toAbsolute( mFilePath ).toString; | 71 return tango.io.FileSystem.FileSystem.toAbsolute( mFilePath ).toString; |
72 } | 72 } |
73 | 73 |
74 public dwt.dwthelper.File.File getAbsoluteFile(){ | 74 public dwt.dwthelper.File.File getAbsoluteFile(){ |
75 return new File( getAbsolutePath() ); | 75 return new File( getAbsolutePath() ); |
76 } | 76 } |
77 | 77 |
78 public char[] getCanonicalPath(){ | 78 public String getCanonicalPath(){ |
79 implMissing( __FILE__, __LINE__ ); | 79 implMissing( __FILE__, __LINE__ ); |
80 return null; | 80 return null; |
81 } | 81 } |
82 | 82 |
83 public dwt.dwthelper.File.File getCanonicalFile(){ | 83 public dwt.dwthelper.File.File getCanonicalFile(){ |
134 | 134 |
135 public void deleteOnExit(){ | 135 public void deleteOnExit(){ |
136 implMissing( __FILE__, __LINE__ ); | 136 implMissing( __FILE__, __LINE__ ); |
137 } | 137 } |
138 | 138 |
139 public char[][] list(){ | 139 public String[] list(){ |
140 implMissing( __FILE__, __LINE__ ); | 140 implMissing( __FILE__, __LINE__ ); |
141 return null; | 141 return null; |
142 } | 142 } |
143 | 143 |
144 public dwt.dwthelper.File.File[] listFiles(){ | 144 public dwt.dwthelper.File.File[] listFiles(){ |
174 public static dwt.dwthelper.File.File[] listRoots(){ | 174 public static dwt.dwthelper.File.File[] listRoots(){ |
175 implMissing( __FILE__, __LINE__ ); | 175 implMissing( __FILE__, __LINE__ ); |
176 return null; | 176 return null; |
177 } | 177 } |
178 | 178 |
179 public static dwt.dwthelper.File.File createTempFile( char[] prefix, char[] suffix, dwt.dwthelper.File.File directory ){ | 179 public static dwt.dwthelper.File.File createTempFile( String prefix, String suffix, dwt.dwthelper.File.File directory ){ |
180 implMissing( __FILE__, __LINE__ ); | 180 implMissing( __FILE__, __LINE__ ); |
181 return null; | 181 return null; |
182 } | 182 } |
183 | 183 |
184 public static dwt.dwthelper.File.File createTempFile( char[] prefix, char[] suffix ){ | 184 public static dwt.dwthelper.File.File createTempFile( String prefix, String suffix ){ |
185 implMissing( __FILE__, __LINE__ ); | 185 implMissing( __FILE__, __LINE__ ); |
186 return null; | 186 return null; |
187 } | 187 } |
188 | 188 |
189 public int compareTo( dwt.dwthelper.File.File pathname ){ | 189 public int compareTo( dwt.dwthelper.File.File pathname ){ |
190 implMissing( __FILE__, __LINE__ ); | 190 implMissing( __FILE__, __LINE__ ); |
191 return 0; | 191 return 0; |
192 } | 192 } |
193 | 193 |
194 public char[] toString(){ | 194 public String toString(){ |
195 implMissing( __FILE__, __LINE__ ); | 195 implMissing( __FILE__, __LINE__ ); |
196 return null; | 196 return null; |
197 } | 197 } |
198 | 198 |
199 | 199 |