00001 00005 // 00006 // HRFormatterProtocol.h 00007 // HTTPRiot 00008 // 00009 // Created by Justin Palmer on 2/8/09. 00010 // Copyright 2009 Alternateidea. All rights reserved. 00011 // 00012 #import <Foundation/Foundation.h> 00013 00020 @protocol HRFormatterProtocol 00021 00025 + (NSString *)extension; 00026 00030 + (NSString *)mimeType; 00031 00038 + (id)decode:(NSData *)data error:(NSError **)error; 00039 00046 + (NSString *)encode:(id)object error:(NSError **)error; 00047 @end