com.mucommander.file
Interface ArchiveFormatProvider

All Known Implementing Classes:
ArFormatProvider, Bzip2FormatProvider, GzipFormatProvider, IsoFormatProvider, LstFormatProvider, RarFormatProvider, TarFormatProvider, ZipFormatProvider

public interface ArchiveFormatProvider

This interface allows FileFactory to instanciate AbstractArchiveFile implementations and associate them with the filenames matched by a FilenameFilter.

For AbstractArchiveFile implementations to be automatically instanciated by FileFactory, this interface needs to be implemented and an instance registered with FileFactory.

Author:
Nicolas Rinaudo, Maxence Bernard
See Also:
AbstractArchiveFile, FileFactory

Method Summary
 AbstractArchiveFile getFile(AbstractFile file)
          Creates a new instance of AbstractArchiveFile .
 FilenameFilter getFilenameFilter()
          Returns the FilenameFilter that matches filenames to be associated with this archive format.
 

Method Detail

getFile

AbstractArchiveFile getFile(AbstractFile file)
                            throws java.io.IOException
Creates a new instance of AbstractArchiveFile .

Parameters:
file - file to map as an AbstractArchiveFile.
Returns:
a new instance of AbstractArchiveFile that matches the specified URL.
Throws:
java.io.IOException - if an error occurs.

getFilenameFilter

FilenameFilter getFilenameFilter()
Returns the FilenameFilter that matches filenames to be associated with this archive format.

Returns:
the FilenameFilter that matches filenames to be associated with this archive format


This file is part of muCommander - Copyright (C) 2002-2008 Maxence Bernard