@class FinchSample;

enum DecoderError
{
    kDENoSuitableDecoderFound = 1,
    kDEFileReadError,
    kDEFileFormatReadError,
    kDEInvalidFileFormat,
    kDEMemoryAllocationError
};

@interface FinchDecoder : NSObject {}

+ (void) registerDecoder: (Class) c forExtension: (NSString*) ext;
+ (FinchSample*) decodeFile: (NSString*) name error: (NSError**) error;

@end