| OLD | NEW |
| 1 library java.io; | 1 library java.io; |
| 2 | 2 |
| 3 import "dart:io"; | 3 import "dart:io"; |
| 4 import "dart:uri"; | 4 import "dart:uri"; |
| 5 | 5 |
| 6 class JavaSystemIO { | 6 class JavaSystemIO { |
| 7 static final String pathSeparator = Platform.pathSeparator; | 7 static final String pathSeparator = Platform.pathSeparator; |
| 8 static final int pathSeparatorChar = Platform.pathSeparator.codeUnitAt(0); | 8 static final int pathSeparatorChar = Platform.pathSeparator.codeUnitAt(0); |
| 9 static String getProperty(String name) { | 9 static String getProperty(String name) { |
| 10 if (name == 'os.name') { | 10 if (name == 'os.name') { |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 } | 32 } |
| 33 | 33 |
| 34 File getAbsoluteFile(File file) { | 34 File getAbsoluteFile(File file) { |
| 35 var path = file.fullPathSync(); | 35 var path = file.fullPathSync(); |
| 36 return new File(path); | 36 return new File(path); |
| 37 } | 37 } |
| 38 | 38 |
| 39 Uri newUriFromFile(File file) { | 39 Uri newUriFromFile(File file) { |
| 40 return new Uri.fromComponents(path: file.fullPathSync()); | 40 return new Uri.fromComponents(path: file.fullPathSync()); |
| 41 } | 41 } |
| OLD | NEW |