/** * @return list of all values */ public List<String> getValues() { return splitByNullSeperator((String) value); }
/** * * @return list of all values */ public List<String> getValues() { return splitByNullSeperator((String) value); }
/** * * @return list of all values */ public List<String> getValues() { return splitByNullSeperator((String) value); }
/** * Get the nth value * * @param index * @return the nth value * @throws IndexOutOfBoundsException if value does not exist */ public String getValueAtIndex(int index) { //Split String into separate components List values = splitByNullSeperator((String) value); return (String) values.get(index); }
/** * Get the nth value * * @param index * @return the nth value * @throws IndexOutOfBoundsException if value does not exist */ public String getValueAtIndex(int index) { //Split String into separate components List values = splitByNullSeperator((String) value); return (String) values.get(index); }
/** * How many values are held, each value is separated by a null terminator * * @return number of values held, usually this will be one. */ public int getNumberOfValues() { return splitByNullSeperator(((String) value)).size(); }
/** * How many values are held, each value is separated by a null terminator * * @return number of values held, usually this will be one. */ public int getNumberOfValues() { return splitByNullSeperator(((String) value)).size(); }
/** * How many values are held, each value is separated by a null terminator * * @return number of values held, usually this will be one. */ public int getNumberOfValues() { return splitByNullSeperator(((String) value)).size(); }
/** * Get the nth value * * @param index * @return the nth value * @throws IndexOutOfBoundsException if value does not exist */ public String getValueAtIndex(int index) { //Split String into separate components List values = splitByNullSeperator((String) value); return (String) values.get(index); }
/** * Get value(s) whilst removing any trailing nulls * * @return */ public String getValueWithoutTrailingNull() { List<String> values = splitByNullSeperator((String) value); StringBuffer sb = new StringBuffer(); for (int i = 0; i < values.size(); i++) { if (i != 0) { sb.append("\u0000"); } sb.append(values.get(i)); } return sb.toString(); } }
/** * Get value(s) whilst removing any trailing nulls * * @return */ public String getValueWithoutTrailingNull() { List<String> values = splitByNullSeperator((String) value); StringBuffer sb = new StringBuffer(); for(int i=0;i<values.size();i++) { if(i!=0) { sb.append("\u0000"); } sb.append(values.get(i)); } return sb.toString(); } }
/** * Get value(s) whilst removing any trailing nulls * * @return */ public String getValueWithoutTrailingNull() { List<String> values = splitByNullSeperator((String) value); StringBuffer sb = new StringBuffer(); for(int i=0;i<values.size();i++) { if(i!=0) { sb.append("\u0000"); } sb.append(values.get(i)); } return sb.toString(); } }
/** * Retrieve the mth value that exists in the nth frame for this generic key * * @param genericKey * @param n the index of the frame * @param m * @return */ public String getSubValue(FieldKey genericKey, int n, int m) { String wholeValue = getValue(genericKey, n); List<String> values = TextEncodedStringSizeTerminated.splitByNullSeperator(wholeValue); if (values.size() > m) { return values.get(m); } return ""; }
/** * Retrieve the mth value that exists in the nth frame for this generic key * * @param genericKey * @param n the index of the frame * @param m * @return */ public String getSubValue(FieldKey genericKey, int n, int m) { String wholeValue = getValue(genericKey, n); List<String> values = TextEncodedStringSizeTerminated.splitByNullSeperator(wholeValue); if (values.size() > m) { return values.get(m); } return ""; }
List<String> values = splitByNullSeperator(stringValue); checkTrailingNull(values, stringValue);
List<String> values = splitByNullSeperator(stringValue); checkTrailingNull(values, stringValue);
List<String> values = splitByNullSeperator(stringValue); checkTrailingNull(values, stringValue);