Package entagged.audioformats

Examples of entagged.audioformats.AudioFileFilter


     * (overridden)
     *
     * @see junit.framework.TestCase#runTest()
     */
    protected void runTest() throws Throwable {
        File[] files = parent.copyDir.listFiles(new AudioFileFilter());
        for (int i = 0; i < files.length; i++) {
            AudioFile file = AudioFileIO.read(files[i]);
            file.getTag().setTrack("do not modify");
            AudioFileIO.write(file);
        }
View Full Code Here


    /*
     * @see TestCase#setUp()
     */
    protected void setUp() throws Exception {
        files = dir.listFiles(new FileFilter() {
            AudioFileFilter filter =new AudioFileFilter();
            public boolean accept(File pathname) {
                return pathname.isFile() && filter.accept(pathname);
            }
        });
        selIndexes = createSelection(files);
        File[] selection = new File[files.length];
        for (int i = 0; i < selection.length; i++) {
View Full Code Here

        TrackEnumerator te = new TrackEnumerator();
        TrackEnumeratorSettings settings = te.getSettings();
        settings.setOfString(" of <n>");
        settings.setFiles(new File[] {parent.copyDir});
        String of = " of "+String.valueOf(te.process(false));
        File[] files = parent.copyDir.listFiles(new AudioFileFilter());
        for (int i = 0; i < files.length; i++) {
            String track = AudioFileIO.read(files[i]).getTag().getFirstTrack();
            assertTrue ("End of track doesn't match: ",track.endsWith(of));
        }
    }
View Full Code Here

        if (!(directory.exists() && directory.isDirectory() && directory
                .canRead())) {
            throw new AssertionFailedError(
                    "config.properties->junit.formats.directory should be a readable directory. ");
        }
        File[] files = directory.listFiles(new AudioFileFilter());
        for (int i = 0; i < files.length; i++) {
            File current = files[i];
            if (current.isFile() && current.canRead()) {
                return current;
            }
View Full Code Here

        if (!(directory.exists() && directory.isDirectory() && directory
                .canRead())) {
            throw new AssertionFailedError(
                    "config.properties->junit.formats.directory should be a readable directory. ");
        }
        File[] files = directory.listFiles(new AudioFileFilter());
        for (int i = 0; i < files.length; i++) {
            File current = files[i];
            if (current.isFile() && current.canRead()) {
                File copy = Utils.createCopy(current);
                this.copies.add(copy);
View Full Code Here

     *                  if <code>true</code> no changes will be performed. <br>
     * @return The number of affected files.
     */
    private int processDirectory(File current, int start, int total,
            boolean preview) {
        File[] content = current.listFiles(new AudioFileFilter());
        Arrays.sort(content, this.sorter);
        if (getSettings().isDirectoryRestart()) {
            start = 0;
            total = 0;
            for (int i = 0; i < content.length && !progressListener.abort(); i++) {
View Full Code Here

TOP

Related Classes of entagged.audioformats.AudioFileFilter

Copyright © 2018 www.massapicom. 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.