Code example for RandomAccessFile

Methods: getFilePointerlengthseeksetLength

0
    } 
 
    public void delete(final RandomAccessFile file) throws IOException {
        long filePointer;
        ID3v1 id3v1tag = new ID3v1();
        if (seek(file)) {
            id3v1tag = id3v1tag.getID3tag(file);
            seek(file);
            filePointer = file.getFilePointer();
 
            // cut off the "LYRICSBEGIN" 
            filePointer -= 11;
            file.setLength(filePointer);
            file.seek(file.length());
            if (id3v1tag != null) {
                id3v1tag.write(file);
            } 
        } 
    } 
 
    public void overwrite(final RandomAccessFile file) throws IOException, TagException {
Connect your IDE to all the code out there  Get Codota for Java