Examples of Lyrics3Image


Examples of org.jaudiotagger.tag.datatype.Lyrics3Image

    }

    public FieldFrameBodyIMG(FieldFrameBodyIMG copyObject) {
        super(copyObject);

        Lyrics3Image old;

        for (int i = 0; i < copyObject.images.size(); i++) {
            old = copyObject.images.get(i);
            this.images.add(new Lyrics3Image(old));
        }
    }
View Full Code Here

Examples of org.jaudiotagger.tag.datatype.Lyrics3Image

    /**
     * @return
     */
    public int getSize() {
        int size = 0;
        Lyrics3Image image;

        for (Object image1 : images) {
            image = (Lyrics3Image) image1;
            size += (image.getSize() + 2); // addField CRLF pair
        }

        return size - 2; // cut off trailing crlf pair
    }
View Full Code Here

Examples of org.jaudiotagger.tag.datatype.Lyrics3Image

    /**
     * @param imageString
     */
    private void readString(String imageString) {
        // now read each picture and put in the vector;
        Lyrics3Image image;
        String token;
        int offset = 0;
        int delim = imageString.indexOf(Lyrics3v2Fields.CRLF);
        images = new ArrayList<Lyrics3Image>();

        while (delim >= 0) {
            token = imageString.substring(offset, delim);
            image = new Lyrics3Image("Image", this);
            image.setFilename(token);
            images.add(image);
            offset = delim + Lyrics3v2Fields.CRLF.length();
            delim = imageString.indexOf(Lyrics3v2Fields.CRLF, offset);
        }

        if (offset < imageString.length()) {
            token = imageString.substring(offset);
            image = new Lyrics3Image("Image", this);
            image.setFilename(token);
            images.add(image);
        }
    }
View Full Code Here

Examples of org.jaudiotagger.tag.datatype.Lyrics3Image

    /**
     * @return
     */
    private String writeString() {
        String str = "";
        Lyrics3Image image;

        for (Object image1 : images) {
            image = (Lyrics3Image) image1;
            str += (image.writeString() + Lyrics3v2Fields.CRLF);
        }

        if (str.length() > 2) {
            return str.substring(0, str.length() - 2);
        }
View Full Code Here
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.