…lines 1–85 unchanged (85 lines)
86 else if (PatternOptionBuilder.FILE_VALUE == clazz)
87 {
88 return createFile(str);
89 }
90 else if (PatternOptionBuilder.EXISTING_FILE_VALUE == clazz)
91 {
92 return openFile(str);
93 }
94 else if (PatternOptionBuilder.FILES_VALUE == clazz)
95 {
96 return createFiles(str);
97 }
98 else if (PatternOptionBuilder.URL_VALUE == clazz)
…lines 99–227 unchanged (129 lines)
228 * Returns the opened FileInputStream represented by <code>str</code>.
229 *
230 * @param str the file location
231 * @return The file input stream represented by <code>str</code>.
232 * @throws ParseException if the file is not exist or not readable
233 */
234 public static FileInputStream openFile(String str) throws ParseException
235 {
236 try
237 {
238 return new FileInputStream(str);
239 }
240 catch (FileNotFoundException e)
241 {
242 throw new ParseException("Unable to find file: " + str);
243 }
244 }
245
246 /**
247 * Returns the File[] represented by <code>str</code>.
248 * <p>
249 * This method is not yet implemented and always throws an
250 * {@link UnsupportedOperationException}.
…lines 251–263 unchanged (13 lines)