Home | History | Annotate | Download | only in net

Lines Matching refs:input

87      * In this case, the input string should not be used in an internationalized domain name.
98 * @param input the string to be processed
103 * @throws IllegalArgumentException if the input string doesn't conform to RFC 3490 specification
105 public static String toASCII(String input, int flag) {
108 return IDNA.convertIDNToASCII(input, flag).toString();
110 throw new IllegalArgumentException("Invalid input to toASCII: " + input, e);
123 * {@link #toASCII(String, int) toASCII}(input, 0);
126 * @param input the string to be processed
130 * @throws IllegalArgumentException if the input string doesn't conform to RFC 3490 specification
132 public static String toASCII(String input) {
133 return toASCII(input, 0);
141 * <p>ToUnicode never fails. In case of any error, the input string is returned unmodified.
150 * @param input the string to be processed
155 public static String toUnicode(String input, int flag) {
160 return convertFullStop(IDNA.convertIDNToUnicode(input, flag)).toString();
164 return input;
174 private static StringBuffer convertFullStop(StringBuffer input) {
175 for (int i = 0; i < input.length(); i++) {
176 if (isLabelSeperator(input.charAt(i))) {
177 input.setCharAt(i, '.');
180 return input;
191 * {@link #toUnicode(String, int) toUnicode}(input,&nbsp;0);
194 * @param input the string to be processed
198 public static String toUnicode(String input) {
199 return toUnicode(input, 0);
324 throw new IllegalArgumentException("The input starts with the ACE Prefix");
333 throw new IllegalArgumentException("The label in the input is too long");
347 // find out if all the codepoints in input are ASCII
357 // toUnicode never fails; if any step fails, return the input string
393 // just return the input
417 // or if there is no dots, return the length of input string
449 private static boolean isAllASCII(String input) {
451 for (int i = 0; i < input.length(); i++) {
452 int c = input.charAt(i);
464 private static boolean startsWithACEPrefix(StringBuffer input){
467 if(input.length() < ACE_PREFIX_LENGTH){
471 if(toASCIILower(input.charAt(i)) != ACE_PREFIX.charAt(i)){
485 private static StringBuffer toASCIILower(StringBuffer input){
487 for(int i = 0; i < input.length();i++){
488 dest.append(toASCIILower(input.charAt(i)));