@Test public void testValidPercentHexOctetsString() { assertTrue(StringValidateEncodeUtils.validPercentHexOctetsString("%46")); assertTrue(StringValidateEncodeUtils.validPercentHexOctetsString("%42%44")); assertTrue(StringValidateEncodeUtils.validPercentHexOctetsString("%42%44%46")); assertTrue(StringValidateEncodeUtils.validPercentHexOctetsString("%a2%F4%e6")); assertFalse(StringValidateEncodeUtils.validPercentHexOctetsString("%fff%a123")); assertFalse(StringValidateEncodeUtils.validPercentHexOctetsString("abcdef")); assertFalse(StringValidateEncodeUtils.validPercentHexOctetsString("123")); }
public static boolean validPercentHexOctetsString(String percentHexOctetsString) { if (percentHexOctetsString == null) return false; Matcher m = VALID_PERCENT_HEX_OCTETS_PATTERN.matcher(percentHexOctetsString); return m.matches(); }
StringValidateEncodeUtils { public static boolean validPercentHexOctetsString(String percentHexOctetsString) { if (percentHexOctetsString == null) return false; Matcher m = VALID_PERCENT_HEX_OCTETS_PATTERN.matcher(percentHexOctetsString); return m.matches(); } }
StringValidateEncodeUtils { public static boolean validPercentHexOctetsString(String percentHexOctetsString) { if (percentHexOctetsString == null) return false; Matcher m = VALID_PERCENT_HEX_OCTETS_PATTERN.matcher(percentHexOctetsString); return m.matches(); } private  StringValidateEncodeUtils(); }
StringValidateEncodeUtils { public static boolean validPercentHexOctetsString(String percentHexOctetsString) { if (percentHexOctetsString == null) return false; Matcher m = VALID_PERCENT_HEX_OCTETS_PATTERN.matcher(percentHexOctetsString); return m.matches(); } private  StringValidateEncodeUtils(); static boolean validSingleLineString(String singleLineString); @SuppressWarnings({"SimplifiableIfStatement"}) static boolean validPath(String path); @SuppressWarnings({"SimplifiableIfStatement"}) static boolean validFilePath(String path); @SuppressWarnings({"SimplifiableIfStatement"}) static boolean validUriString(String uri); static boolean validIdString(String id); static boolean containsAngleBracketCharacters(String string); static boolean containsAmpersandCharacters(String string); static boolean containsBackslashCharacters(String string); static boolean validDecimalNumber(String number); @SuppressWarnings({"SimplifiableIfStatement"}) static boolean validBooleanString(String boolString); static boolean validAlphanumericString(String alphNumString); static boolean validAlphanumericStringConstrainedSet(String alphNumString, String[] constrainedSet,
      boolean ignoreCase); @SuppressWarnings({"UnnecessaryContinue"}) static boolean descendOnlyFilePath(String path); static boolean validPercentHexOctetsString(String percentHexOctetsString); static String unicodeCodePoint2PercentHexString(int codePoint, String charsetName); }
StringValidateEncodeUtils { public static boolean validPercentHexOctetsString(String percentHexOctetsString) { if (percentHexOctetsString == null) return false; Matcher m = VALID_PERCENT_HEX_OCTETS_PATTERN.matcher(percentHexOctetsString); return m.matches(); } private  StringValidateEncodeUtils(); static boolean validSingleLineString(String singleLineString); @SuppressWarnings({"SimplifiableIfStatement"}) static boolean validPath(String path); @SuppressWarnings({"SimplifiableIfStatement"}) static boolean validFilePath(String path); @SuppressWarnings({"SimplifiableIfStatement"}) static boolean validUriString(String uri); static boolean validIdString(String id); static boolean containsAngleBracketCharacters(String string); static boolean containsAmpersandCharacters(String string); static boolean containsBackslashCharacters(String string); static boolean validDecimalNumber(String number); @SuppressWarnings({"SimplifiableIfStatement"}) static boolean validBooleanString(String boolString); static boolean validAlphanumericString(String alphNumString); static boolean validAlphanumericStringConstrainedSet(String alphNumString, String[] constrainedSet,
      boolean ignoreCase); @SuppressWarnings({"UnnecessaryContinue"}) static boolean descendOnlyFilePath(String path); static boolean validPercentHexOctetsString(String percentHexOctetsString); static String unicodeCodePoint2PercentHexString(int codePoint, String charsetName); final static String CHARACTER_ENCODING_UTF_8; }