(String file)
| 8151 | } |
| 8152 | |
| 8153 | public static Object loadFile(String file) throws IOException{ |
| 8154 | // File fo = new File(file); |
| 8155 | // if(!fo.exists()) |
| 8156 | // return null; |
| 8157 | |
| 8158 | FileInputStream f = new FileInputStream(file); |
| 8159 | try |
| 8160 | { |
| 8161 | return load(new InputStreamReader(f, RT.UTF8), new File(file).getAbsolutePath(), (new File(file)).getName()); |
| 8162 | } |
| 8163 | finally |
| 8164 | { |
| 8165 | f.close(); |
| 8166 | } |
| 8167 | } |
| 8168 | |
| 8169 | public static Object load(Reader rdr) { |
| 8170 | return load(rdr, null, "NO_SOURCE_FILE"); |