private static void checkInvalidPathChars(final String path) { if (!isWindows && path.length() >= 2 && path.charAt(0) == '\\' && path.charAt(1) == '\\') { throw Error.invalidPathCharacters(); } for (int i = 0; i < path.length(); i++) { final int ch = path.charAt(i); if (ch == '\"' || ch == '<' || ch == '>' || ch == '|' || ch < 32) { throw Error.invalidPathCharacters(); } } }
throw Error.illegalPath(); throw Error.illegalPath(); throw Error.illegalPath(); throw Error.illegalPath(); throw Error.pathTooLong(); throw Error.illegalPath(); throw Error.pathTooLong(); throw Error.illegalPath(); throw Error.illegalPath(); throw Error.illegalPath(); throw Error.illegalPath(); throw Error.illegalPath(); throw Error.pathUriFormatNotSupported(); throw Error.illegalUncPath(); throw Error.canonicalizationError(e);
throw Error.illegalPath(); throw Error.illegalPath(); throw Error.illegalPath(); throw Error.illegalPath(); throw Error.pathTooLong(); throw Error.illegalPath(); throw Error.pathTooLong(); throw Error.illegalPath(); throw Error.illegalPath(); throw Error.illegalPath(); throw Error.illegalPath(); throw Error.illegalPath(); throw Error.pathUriFormatNotSupported(); throw Error.illegalUncPath(); throw Error.canonicalizationError(e);
throw Error.illegalPath(); throw Error.illegalPath(); throw Error.illegalPath(); throw Error.illegalPath(); throw Error.pathTooLong(); throw Error.illegalPath(); throw Error.pathTooLong(); throw Error.illegalPath(); throw Error.illegalPath(); throw Error.illegalPath(); throw Error.illegalPath(); throw Error.illegalPath(); throw Error.pathUriFormatNotSupported(); throw Error.illegalUncPath(); throw Error.canonicalizationError(e);
private static void checkInvalidPathChars(final String path) { if (!isWindows && path.length() >= 2 && path.charAt(0) == '\\' && path.charAt(1) == '\\') { throw Error.invalidPathCharacters(); } for (int i = 0; i < path.length(); i++) { final int ch = path.charAt(i); if (ch == '\"' || ch == '<' || ch == '>' || ch == '|' || ch < 32) { throw Error.invalidPathCharacters(); } } }
private static void checkInvalidPathChars(final String path) { if (!isWindows && path.length() >= 2 && path.charAt(0) == '\\' && path.charAt(1) == '\\') { throw Error.invalidPathCharacters(); } for (int i = 0; i < path.length(); i++) { final int ch = path.charAt(i); if (ch == '\"' || ch == '<' || ch == '>' || ch == '|' || ch < 32) { throw Error.invalidPathCharacters(); } } }