Package org.jaudiotagger.tag.datatype

Examples of org.jaudiotagger.tag.datatype.TextEncodedStringSizeTerminated


     * This is different to other text Frames
     */
    protected void setupObjectList() {
        objectList.add(new NumberHashMap(DataTypes.OBJ_TEXT_ENCODING, this, TextEncoding.TEXT_ENCODING_FIELD_SIZE));
        objectList.add(new TextEncodedStringNullTerminated(DataTypes.OBJ_DESCRIPTION, this));
        objectList.add(new TextEncodedStringSizeTerminated(DataTypes.OBJ_TEXT, this));
    }
View Full Code Here


     *
     * @param index
     * @return value at index
     */
    public String getValueAtIndex(int index) {
        TextEncodedStringSizeTerminated text = (TextEncodedStringSizeTerminated) getObject(DataTypes.OBJ_TEXT);
        return text.getValueAtIndex(index);
    }
View Full Code Here

     * Add additional value to value
     *
     * @param value at index
     */
    public void addTextValue(String value) {
        TextEncodedStringSizeTerminated text = (TextEncodedStringSizeTerminated) getObject(DataTypes.OBJ_TEXT);
        text.addValue(value);
    }
View Full Code Here

    /**
     * @return number of text values, usually one
     */
    public int getNumberOfValues() {
        TextEncodedStringSizeTerminated text = (TextEncodedStringSizeTerminated) getObject(DataTypes.OBJ_TEXT);
        return text.getNumberOfValues();
    }
View Full Code Here

     * <p/>
     * TODO:would like to make final but cannot because overridden by FrameBodyTXXX
     */
    protected void setupObjectList() {
        objectList.add(new NumberHashMap(DataTypes.OBJ_TEXT_ENCODING, this, TextEncoding.TEXT_ENCODING_FIELD_SIZE));
        objectList.add(new TextEncodedStringSizeTerminated(DataTypes.OBJ_TEXT, this));
    }
View Full Code Here

     * 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();
    }
View Full Code Here

     * Get first value
     *
     * @return value at index 0
     */
    public String getFirstTextValue() {
        TextEncodedStringSizeTerminated text = (TextEncodedStringSizeTerminated) getObject(DataTypes.OBJ_TEXT);
        return text.getValueAtIndex(0);
    }
View Full Code Here

TOP

Related Classes of org.jaudiotagger.tag.datatype.TextEncodedStringSizeTerminated

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.