[Previous]
[Up]
[Next]
NSURLHandle
Authors
- Richard Frith-Macdonald
-
Version: 0.1
Date: 28 February, 2000
Declared in: Foundation/NSURLHandle.h
Inherits from: NSObject
Instance Variables
Methods
Class Methods
+ (Class) URLHandleClassForURL: (NSURL*)anURL;
Returns the most recently registered NSURLHandle subclass that
responds to canInitWithURL:
with YES
+ (NSURLHandle*) cachedHandleForURL: (NSURL*)anURL;
Returns a previously created object that handles the specified
URL (if any exists).
+ (BOOL) canInitWithURL: (NSURL*)anURL;
Implemented by subclasses to say which URLs they can handle.
+ (void) registerURLHandleClass: (Class)anURLHandleSubclass;
Used to register a subclass as being available to handle URLs.
Instances Methods
- (void) addClient: (id<NSURLHandleClient>)client;
- (NSData*) availableResourceData;
- (void) backgroundLoadDidFailWithReason: (NSString*)reason;
- (void) beginLoadInBackground;
- (void) cancelLoadInBackground;
- (void) didLoadBytes: (NSData*)newBytes loadComplete: (BOOL)yorn;
- (void) endLoadInBackground;
- (NSString*) failureReason;
- (void) flushCachedData;
- (void) loadInBackground;
- (NSData*) loadInForeground;
- (id) propertyForKey: (NSString*)propertyKey;
- (id) propertyForKeyIfAvailable: (NSString*)propertyKey;
- (void) removeClient: (id<NSURLHandleClient>)client;
- (NSData*) resourceData;
- (NSURLHandleStatus) status;
- (BOOL) writeData: (NSData*)data;
- (BOOL) writeProperty: (id)propertyValue;