Examples of VorbisCommentTag


Examples of org.jaudiotagger.tag.vorbiscomment.VorbisCommentTag

        } catch (CannotReadException e) {
            write(VorbisCommentTag.createNewTag(), raf, tempRaf);
            return;
        }

        VorbisCommentTag emptyTag = VorbisCommentTag.createNewTag();

        //Go back to start of file
        raf.seek(0);
        write(emptyTag, raf, tempRaf);
    }
View Full Code Here

Examples of org.jaudiotagger.tag.vorbiscomment.VorbisCommentTag

    public FlacTag read(RandomAccessFile raf) throws CannotReadException, IOException {
        FlacStreamReader flacStream = new FlacStreamReader(raf);
        flacStream.findStream();

        //Hold the metadata
        VorbisCommentTag tag = null;
        List<MetadataBlockDataPicture> images = new ArrayList<MetadataBlockDataPicture>();

        //Seems like we have a valid stream
        boolean isLastBlock = false;
        while (!isLastBlock) {
View Full Code Here

Examples of org.jaudiotagger.tag.vorbiscomment.VorbisCommentTag

    @Override
    public void write(Track track) throws TagWriteException {
        try {
            org.jaudiotagger.audio.AudioFile af1 = AudioFileIO.read(track.getTrackData().getFile());
            Tag abstractTag = af1.getTagOrCreateDefault();
            copyTagFields(abstractTag, new VorbisCommentTag(), track);
            AudioFileIO.write(af1);
        } catch (Exception e) {
            throw new TagWriteException(e);
        }
    }
View Full Code Here

Examples of org.jaudiotagger.tag.vorbiscomment.VorbisCommentTag

    public Tag read(RandomAccessFile raf) throws CannotReadException, IOException {
//        //logger.info("Starting to read ogg vorbis tag from file:");
        byte[] rawVorbisCommentData = readRawPacketData(raf);

        //Begin tag reading
        VorbisCommentTag tag = vorbisCommentReader.read(rawVorbisCommentData, true);
//        //logger.fine("CompletedReadCommentTag");
        return tag;
    }
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.