/** * This constructor allows the creation of a UnixFTPEntryParser object with * something other than the default configuration. * * @param config The {@link FTPClientConfig configuration} object used to * configure this parser. * @throws IllegalArgumentException * Thrown if the regular expression is unparseable. Should not be seen * under normal conditions. It it is seen, this is a sign that * <code>REGEX</code> is not a valid regular expression. * @since 1.4 */ public MacOsPeterFTPEntryParser(FTPClientConfig config) { super(REGEX); configure(config); }
parser = new MacOsPeterFTPEntryParser(config);
boolean isDevice = false; if (matches(entry)) String typeStr = group(1); String hardLinkCount = "0"; String usr = null; String grp = null; String filesize = group(20); String datestr = group(21) + " " + group(22); String name = group(23); String endtoken = group(24); (!group(g).equals("-"))); file.setPermission(access, FTPFile.WRITE_PERMISSION, (!group(g + 1).equals("-"))); String execPerm = group(g + 2); if (!execPerm.equals("-") && !Character.isUpperCase(execPerm.charAt(0)))
parser = new NetwareFTPEntryParser(config); } else if (ukey.contains("MACOS PETER")) { parser = new MacOsPeterFTPEntryParser(config); } else if (ukey.contains("TYPE: L8")) { parser = new UnixFTPEntryParser(config);