OLD | NEW |
1 library java.engine.io; | 1 library java.engine.io; |
2 | 2 |
3 import "dart:io"; | 3 import "dart:io"; |
4 import "java_io.dart"; | 4 import "java_io.dart"; |
5 | 5 |
6 | |
7 class OSUtilities { | 6 class OSUtilities { |
8 static String LINE_SEPARATOR = isWindows() ? '\r\n' : '\n'; | 7 static String LINE_SEPARATOR = isWindows() ? '\r\n' : '\n'; |
9 static bool isWindows() => Platform.operatingSystem == 'windows'; | 8 static bool isWindows() => Platform.operatingSystem == 'windows'; |
10 static bool isMac() => Platform.operatingSystem == 'macos'; | 9 static bool isMac() => Platform.operatingSystem == 'macos'; |
11 } | 10 } |
12 | 11 |
13 class FileUtilities2 { | 12 class FileUtilities2 { |
14 static JavaFile createFile(String path) { | 13 static JavaFile createFile(String path) { |
15 return new JavaFile(path).getAbsoluteFile(); | 14 return new JavaFile(path).getAbsoluteFile(); |
16 } | 15 } |
17 } | 16 } |
OLD | NEW |