00001 00002 #import <Foundation/Foundation.h> 00003 00004 @interface NSData (NSDataAdditions) 00005 00006 // ================================================================================================ 00007 // Created by Tom Bradley on 21/10/2009. 00008 // Version 1.3 00009 // 00010 // Copyright (c) 2009 Tom Bradley 00011 // 00012 // Permission is hereby granted, free of charge, to any person obtaining a copy 00013 // of this software and associated documentation files (the "Software"), to deal 00014 // in the Software without restriction, including without limitation the rights 00015 // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 00016 // copies of the Software, and to permit persons to whom the Software is 00017 // furnished to do so, subject to the following conditions: 00018 // 00019 // The above copyright notice and this permission notice shall be included in 00020 // all copies or substantial portions of the Software. 00021 // 00022 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 00023 // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 00024 // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 00025 // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 00026 // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 00027 // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 00028 // THE SOFTWARE. 00029 // ================================================================================================ 00030 00031 + (NSData *) dataWithUncompressedContentsOfFile:(NSString *)aFile; 00032 00033 00034 00035 // ================================================================================================ 00036 // base64.h 00037 // ViewTransitions 00038 // 00039 // Created by Neo on 5/11/08. 00040 // Copyright 2008 Kaliware, LLC. All rights reserved. 00041 // 00042 // FOUND HERE http://idevkit.com/forums/tutorials-code-samples-sdk/8-nsdata-base64-extension.html 00043 // ================================================================================================ 00044 + (NSData *) dataWithBase64EncodedString:(NSString *) string; 00045 - (id) initWithBase64EncodedString:(NSString *) string; 00046 00047 - (NSString *) base64Encoding; 00048 - (NSString *) base64EncodingWithLineLength:(unsigned int) lineLength; 00049 00050 00051 /* 00052 // ================================================================================================ 00053 // NSData+gzip.h 00054 // Drip 00055 // 00056 // Created by Nur Monson on 8/21/07. 00057 // Copyright 2007 theidiotproject. All rights reserved. 00058 // 00059 // FOUND HERE http://code.google.com/p/drop-osx/source/browse/trunk/Source/NSData%2Bgzip.h 00060 // ================================================================================================ 00061 - (NSData *)gzipDeflate; 00062 - (NSData *)gzipInflate; 00063 00064 */ 00065 00066 @end