entagged/ 0000755 0001750 0001750 00000000000 10772510550 012574 5 ustar twerner twerner entagged/build.xml 0000755 0001750 0001750 00000020153 10600761525 014421 0 ustar twerner twerner
Entagged compile/build/package script
Entagged Tag editor is now fully compiled.
You can use either:
entagged.bat (windows)
or
entagged.sh (linux)
to launch entagged from sources you just compiled !
(Linux : Remember to set correct permissions (executable))
I have created two files in this directory:
${tageditor_gz}
${tageditor_zip}
The first one contains a snapshot of the entagged sources (with all resources, as well as other random docs/libs, etc)
The second one is a zip file to be distributed, containing the entagged tageditor executable jar file, the needed libraries, and documentation
You can choose to:
Compile entagged tag editor:
$ ant compile
Build the distributions files:
$ ant package
entagged/entagged/ 0000755 0001750 0001750 00000000000 10777761224 014365 5 ustar twerner twerner entagged/entagged/.cvsignore 0000755 0001750 0001750 00000000163 10600760561 016354 0 ustar twerner twerner *.class
sourceforge_upload
entagged-tageditor-*.tar.gz
entagged-tageditor-*.zip
build
*.tar.gz
*.jar
*.exe
entagged/entagged/audioformats/ 0000755 0001750 0001750 00000000000 10772507364 017060 5 ustar twerner twerner entagged/entagged/audioformats/.cvsignore 0000755 0001750 0001750 00000000037 10600760527 021053 0 ustar twerner twerner *.class
javadoc
*.jar
*.gz
entagged/entagged/audioformats/ape/ 0000755 0001750 0001750 00000000000 10772507360 017621 5 ustar twerner twerner entagged/entagged/audioformats/ape/.cvsignore 0000755 0001750 0001750 00000000011 10600760623 021605 0 ustar twerner twerner *.class
entagged/entagged/audioformats/ape/ApeTag.java 0000755 0001750 0001750 00000005034 10600760623 021623 0 ustar twerner twerner /*
* Entagged Audio Tag library
* Copyright (c) 2003-2005 Raphaël Slinckx
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
package entagged.audioformats.ape;
import entagged.audioformats.ape.util.ApeTagTextField;
import entagged.audioformats.generic.AbstractTag;
import entagged.audioformats.generic.TagField;
public class ApeTag extends AbstractTag {
protected String getArtistId() {
return "Artist";
}
protected String getAlbumId() {
return "Album";
}
protected String getTitleId() {
return "Title";
}
protected String getTrackId() {
return "Track";
}
protected String getYearId() {
return "Year";
}
protected String getCommentId() {
return "Comment";
}
protected String getGenreId() {
return "Genre";
}
protected TagField createArtistField(String content) {
return new ApeTagTextField("Artist", content);
}
protected TagField createAlbumField(String content) {
return new ApeTagTextField("Album", content);
}
protected TagField createTitleField(String content) {
return new ApeTagTextField("Title", content);
}
protected TagField createTrackField(String content) {
return new ApeTagTextField("Track", content);
}
protected TagField createYearField(String content) {
return new ApeTagTextField("Year", content);
}
protected TagField createCommentField(String content) {
return new ApeTagTextField("Comment", content);
}
protected TagField createGenreField(String content) {
return new ApeTagTextField("Genre", content);
}
protected boolean isAllowedEncoding(String enc) {
return enc.equals("UTF-8");
}
public String toString() {
return "APE "+super.toString();
}
}
entagged/entagged/audioformats/ape/MonkeyFileReader.java 0000755 0001750 0001750 00000003072 10600760623 023647 0 ustar twerner twerner /*
* Entagged Audio Tag library
* Copyright (c) 2003-2005 Raphaël Slinckx
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
package entagged.audioformats.ape;
import entagged.audioformats.*;
import entagged.audioformats.ape.util.ApeTagReader;
import entagged.audioformats.ape.util.MonkeyInfoReader;
import entagged.audioformats.exceptions.*;
import entagged.audioformats.generic.AudioFileReader;
import java.io.*;
public class MonkeyFileReader extends AudioFileReader {
private ApeTagReader ape = new ApeTagReader();
private MonkeyInfoReader ir = new MonkeyInfoReader();
protected EncodingInfo getEncodingInfo( RandomAccessFile raf ) throws CannotReadException, IOException {
return ir.read(raf);
}
protected Tag getTag( RandomAccessFile raf ) throws CannotReadException, IOException {
return ape.read(raf);
}
} entagged/entagged/audioformats/ape/MonkeyFileWriter.java 0000755 0001750 0001750 00000003301 10600760623 023714 0 ustar twerner twerner /*
* Entagged Audio Tag library
* Copyright (c) 2003-2005 Raphaël Slinckx
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
package entagged.audioformats.ape;
import entagged.audioformats.*;
import entagged.audioformats.ape.util.ApeTagWriter;
import entagged.audioformats.exceptions.*;
import entagged.audioformats.generic.AudioFileWriter;
import entagged.audioformats.mp3.Mp3FileWriter;
import java.io.*;
public class MonkeyFileWriter extends AudioFileWriter {
private ApeTagWriter ape = new ApeTagWriter();
private Mp3FileWriter mp3tw = new Mp3FileWriter();
protected void writeTag(Tag tag, RandomAccessFile raf, RandomAccessFile rafTemp) throws CannotWriteException, IOException {
ape.write(tag, raf, rafTemp);
}
protected void deleteTag(RandomAccessFile raf, RandomAccessFile tempRaf) throws CannotWriteException, IOException {
mp3tw.delete(raf, tempRaf);
if(tempRaf.length() > 0)
ape.delete(tempRaf);
else
ape.delete(raf);
}
}
entagged/entagged/audioformats/ape/util/ 0000755 0001750 0001750 00000000000 10772507361 020577 5 ustar twerner twerner entagged/entagged/audioformats/ape/util/.cvsignore 0000755 0001750 0001750 00000000011 10600760571 022564 0 ustar twerner twerner *.class
entagged/entagged/audioformats/ape/util/ApeTagBinaryField.java 0000755 0001750 0001750 00000004551 10600760571 024716 0 ustar twerner twerner /*
* Entagged Audio Tag library
* Copyright (c) 2003-2005 Raphaël Slinckx
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
package entagged.audioformats.ape.util;
import java.io.UnsupportedEncodingException;
import entagged.audioformats.generic.TagField;
public class ApeTagBinaryField extends ApeTagField {
private byte[] content;
public ApeTagBinaryField(String id, byte[] content) {
super(id, true);
this.content = new byte[content.length];
for(int i = 0; i