Examples of AudioFileFilter


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

Examples of entagged.audioformats.AudioFileFilter

    /*
     * @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

Examples of entagged.audioformats.AudioFileFilter

        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

Examples of entagged.audioformats.AudioFileFilter

        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

Examples of entagged.audioformats.AudioFileFilter

        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

Examples of entagged.audioformats.AudioFileFilter

     *                  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

Examples of org.jaudiotagger.audio.AudioFileFilter

     *
     * @param dir
     */
    private void scanSingleDir(final File dir) {

        final File[] audioFiles = dir.listFiles(new AudioFileFilter(false));
        if (audioFiles.length > 0) {
            for (File audioFile : audioFiles) {
                count++;
                try {
                    AudioFileIO.read(audioFile);
View Full Code Here

Examples of uk.co.caprica.vlcj.filter.AudioFileFilter

     * Create a new file name extension filter that accepts audio files.
     *
     * @return filter
     */
    public static FileFilter newAudioFileFilter() {
        return new SwingFileFilter(AUDIO_FILTER_DESCRIPTION, new AudioFileFilter());
    }
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.