/** * Constructs a tokenizer splitting on the specified delimiter character. * * @param input the string which is to be parsed * @param delim the field delimiter character */ public StrTokenizer(String input, char delim) { this(input); setDelimiterChar(delim); }
/** * Constructs a tokenizer splitting on the specified character. * <p> * The input character array is not cloned, and must not be altered after * passing in to this method. * * @param input the string which is to be parsed, not cloned * @param delim the field delimiter character */ public StrTokenizer(char[] input, char delim) { this(input); setDelimiterChar(delim); }
/** * Constructs a tokenizer splitting on the specified character. * <p> * The input character array is not cloned, and must not be altered after * passing in to this method. * * @param input the string which is to be parsed, not cloned * @param delim the field delimiter character */ public StrTokenizer(char[] input, char delim) { this(input); setDelimiterChar(delim); }
/** * Constructs a tokenizer splitting on the specified delimiter character. * * @param input the string which is to be parsed * @param delim the field delimiter character */ public StrTokenizer(String input, char delim) { this(input); setDelimiterChar(delim); }
/** * Constructs a tokenizer splitting on the specified delimiter character. * * @param input the string which is to be parsed * @param delim the field delimiter character */ public StrTokenizer(String input, char delim) { this(input); setDelimiterChar(delim); }
/** * Constructs a tokenizer splitting on the specified delimiter character. * * @param input the string which is to be parsed * @param delim the field delimiter character */ public StrTokenizer(String input, char delim) { this(input); setDelimiterChar(delim); }
/** * Constructs a tokenizer splitting on the specified delimiter character. * * @param input the string which is to be parsed * @param delim the field delimiter character */ public StrTokenizer(String input, char delim) { this(input); setDelimiterChar(delim); }
/** * Constructs a tokenizer splitting on the specified character. * <p> * The input character array is not cloned, and must not be altered after * passing in to this method. * * @param input the string which is to be parsed, not cloned * @param delim the field delimiter character */ public StrTokenizer(char[] input, char delim) { this(input); setDelimiterChar(delim); }
/** * Constructs a tokenizer splitting on the specified delimiter character. * * @param input the string which is to be parsed * @param delim the field delimiter character */ public StrTokenizer(String input, char delim) { this(input); setDelimiterChar(delim); }
/** * Constructs a tokenizer splitting on the specified character. * <p> * The input character array is not cloned, and must not be altered after * passing in to this method. * * @param input the string which is to be parsed, not cloned * @param delim the field delimiter character */ public StrTokenizer(char[] input, char delim) { this(input); setDelimiterChar(delim); }
/** * Constructs a tokenizer splitting on the specified character. * <p> * The input character array is not cloned, and must not be altered after * passing in to this method. * * @param input the string which is to be parsed, not cloned * @param delim the field delimiter character */ public StrTokenizer(char[] input, char delim) { this(input); setDelimiterChar(delim); }
/** * Constructs a tokenizer splitting on the specified character. * <p> * The input character array is not cloned, and must not be altered after * passing in to this method. * * @param input the string which is to be parsed, not cloned * @param delim the field delimiter character */ public StrTokenizer(char[] input, char delim) { this(input); setDelimiterChar(delim); }
/** * Converts a String back to connection parameters. * @param input String from configuration * @return JDBC connection parameters */ public static Properties propertiesFromString(String input) { if (input != null && !input.isEmpty()) { Properties result = new Properties(); StrTokenizer propertyTokenizer = StrTokenizer.getCSVInstance(input); StrTokenizer valueTokenizer = StrTokenizer.getCSVInstance(); valueTokenizer.setDelimiterChar('='); while (propertyTokenizer.hasNext()) { valueTokenizer.reset(propertyTokenizer.nextToken()); String[] values = valueTokenizer.getTokenArray(); if (values.length == 2) { result.put(values[0], values[1]); } } return result; } else { return null; } } public boolean isDirect(){