/** @return number of text values, usually one */ public int getNumberOfValues() { TextEncodedStringSizeTerminated text = (TextEncodedStringSizeTerminated) getObject(DataTypes.OBJ_TEXT); return text.getNumberOfValues(); }
/** * Get text value at index * * <p>When a multiple values are stored within a single text frame this method allows access to * any of the individual values. * * @param index * @return value at index */ public String getValueAtIndex(int index) { TextEncodedStringSizeTerminated text = (TextEncodedStringSizeTerminated) getObject(DataTypes.OBJ_TEXT); return text.getValueAtIndex(index); }
/** * Add additional value to value * * @param value at index */ public void addTextValue(String value) { TextEncodedStringSizeTerminated text = (TextEncodedStringSizeTerminated) getObject(DataTypes.OBJ_TEXT); text.addValue(value); }
/** * Retrieve the complete text String but without any trailing nulls * * <p>If multiple values are held these will be returned, needless trailing nulls will not be * returned * * @return the text string */ public String getTextWithoutTrailingNulls() { TextEncodedStringSizeTerminated text = (TextEncodedStringSizeTerminated) getObject(DataTypes.OBJ_TEXT); return text.getValueWithoutTrailingNull(); }