Package org.farng.mp3.id3

Source Code of org.farng.mp3.id3.AbstractFrameBodyUrlLink

package org.farng.mp3.id3;

import org.farng.mp3.InvalidTagException;
import org.farng.mp3.object.ObjectStringSizeTerminated;

import java.io.IOException;
import java.io.RandomAccessFile;

/**
* All frames starting with "U" are the same structurally and subclass from here
*
* @author Eric Farng
* @version $Revision: 1.5 $
*/
public abstract class AbstractFrameBodyUrlLink extends AbstractID3v2FrameBody {

    /**
     * Creates a new FrameBodyUrlLink object.
     */
    protected AbstractFrameBodyUrlLink() {
        super();
    }

    /**
     * Creates a new AbstractFrameBodyUrlLink object.
     */
    protected AbstractFrameBodyUrlLink(final AbstractFrameBodyUrlLink body) {
        super(body);
    }

    /**
     * Creates a new FrameBodyUrlLink object.
     */
    protected AbstractFrameBodyUrlLink(final String urlLink) {
        super();
        setObject("URL Link", urlLink);
    }

    /**
     * Creates a new FrameBodyUrlLink object.
     */
    protected AbstractFrameBodyUrlLink(final RandomAccessFile file) throws IOException, InvalidTagException {
        super();
        read(file);
    }

    public String getBriefDescription() {
        return getUrlLink();
    }

    public void setUrlLink(final String urlLink) {
        setObject("URL Link", urlLink);
    }

    public String getUrlLink() {
        return (String) getObject("URL Link");
    }

    protected void setupObjectList() {
        appendToObjectList(new ObjectStringSizeTerminated("URL Link"));
    }
}
TOP

Related Classes of org.farng.mp3.id3.AbstractFrameBodyUrlLink

TOP
Copyright © 2018 www.massapi.com. 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.