|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.rococoa.cocoa.foundation.NSObject
org.rococoa.cocoa.foundation.NSURLHandle
public abstract class NSURLHandle
This file was autogenerated by JNAerator,
a tool written by Olivier Chafik that uses a few opensource projects..
For help, please visit NativeLibs4Java, Rococoa, or JNA.
Nested Class Summary | |
---|---|
static class |
NSURLHandle._class_
|
Nested classes/interfaces inherited from interface org.rococoa.cocoa.foundation.protocols.NSObject |
---|
NSObject._static_ |
Constructor Summary | |
---|---|
NSURLHandle()
|
Method Summary | |
---|---|
abstract void |
addClient(NSURLHandleClient client)
Original signature : -(void)addClient:(id native declaration : NSURLHandle.h:73 |
static NSURLHandle |
alloc()
|
abstract NSData |
availableResourceData()
Immediately returns whatever data is available Original signature : -(NSData*)availableResourceData native declaration : NSURLHandle.h:80 |
abstract void |
backgroundLoadDidFailWithReason(NSString reason)
As a background load progresses, subclasses should call these methods Sends the failure message to clients Original signature : -(void)backgroundLoadDidFailWithReason:(NSString*) native declaration : NSURLHandle.h:89 |
abstract void |
beginLoadInBackground()
Called from -loadInBackground, above. |
static NSURLHandle |
cachedHandleForURL(NSURL anURL)
Original signature : +(NSURLHandle*)cachedHandleForURL:(NSURL*) native declaration : NSURLHandle.h:94 |
abstract void |
cancelLoadInBackground()
Original signature : -(void)cancelLoadInBackground native declaration : NSURLHandle.h:77 |
static boolean |
canInitWithURL(NSURL anURL)
The primitives; these must be overridden by subclasses. |
static NSURLHandle |
createWithURL_cached(NSURL anURL,
boolean willCache)
Factory method |
abstract void |
didLoadBytes_loadComplete(NSData newBytes,
boolean yorn)
Original signature : -(void)didLoadBytes:(NSData*) loadComplete:(BOOL) native declaration : NSURLHandle.h:90 |
abstract void |
endLoadInBackground()
Called from -cancelLoadInBackground, above. |
abstract long |
expectedResourceDataSize()
Length of all of the resource data (can be queried before all data has arrived; negative if unknown) Original signature : -(long long)expectedResourceDataSize native declaration : NSURLHandle.h:83 |
abstract NSString |
failureReason()
if status is NSURLHandleLoadFailed, then failureReason returns the reason for failure; otherwise, it returns nil Original signature : -(NSString*)failureReason native declaration : NSURLHandle.h:71 |
abstract void |
flushCachedData()
Original signature : -(void)flushCachedData native declaration : NSURLHandle.h:86 |
static NSURLHandle._class_ |
getNSClass()
|
abstract NSURLHandle |
initWithURL_cached(NSURL anURL,
boolean willCache)
Original signature : -(id)initWithURL:(NSURL*) cached:(BOOL) native declaration : NSURLHandle.h:95 |
abstract void |
loadInBackground()
Original signature : -(void)loadInBackground native declaration : NSURLHandle.h:76 |
abstract NSData |
loadInForeground()
Called from resourceData, above. |
static NSURLHandle |
new_()
|
abstract NSObject |
propertyForKey(NSString propertyKey)
Must be overridden by subclasses Original signature : -(id)propertyForKey:(NSString*) native declaration : NSURLHandle.h:97 |
abstract NSObject |
propertyForKeyIfAvailable(NSString propertyKey)
Original signature : -(id)propertyForKeyIfAvailable:(NSString*) native declaration : NSURLHandle.h:98 |
static void |
registerURLHandleClass(ObjCClass anURLHandleSubclass)
Call this to register a new subclass of NSURLHandle Original signature : +(void)registerURLHandleClass:(Class) native declaration : NSURLHandle.h:67 |
abstract void |
removeClient(NSURLHandleClient client)
Original signature : -(void)removeClient:(id native declaration : NSURLHandle.h:74 |
abstract NSData |
resourceData()
Blocks until all data is available Original signature : -(NSData*)resourceData native declaration : NSURLHandle.h:79 |
abstract int |
status()
Original signature : -(NSURLHandleStatus)status native declaration : NSURLHandle.h:70 |
static ObjCClass |
URLHandleClassForURL(NSURL anURL)
Original signature : +(Class)URLHandleClassForURL:(NSURL*) native declaration : NSURLHandle.h:68 |
abstract boolean |
writeData(NSData data)
Must be overridden by subclasses; returns success or failure Original signature : -(BOOL)writeData:(NSData*) native declaration : NSURLHandle.h:100 |
abstract boolean |
writeProperty_forKey(ObjCObject propertyValue,
NSString propertyKey)
Original signature : -(BOOL)writeProperty:(id) forKey:(NSString*) native declaration : NSURLHandle.h:99 |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.rococoa.ObjCObject |
---|
id |
Methods inherited from interface org.rococoa.cocoa.foundation.protocols.NSObject |
---|
autorelease, class_, conformsToProtocol, hash, isEqual, isMemberOfClass, isProxy, performSelector_withObject_withObject, performSelector_withObject, performSelector, respondsToSelector, self, superclass, zone |
Constructor Detail |
---|
public NSURLHandle()
Method Detail |
---|
public static void registerURLHandleClass(ObjCClass anURLHandleSubclass)
+(void)registerURLHandleClass:(Class)
public static ObjCClass URLHandleClassForURL(NSURL anURL)
+(Class)URLHandleClassForURL:(NSURL*)
public abstract int status()
-(NSURLHandleStatus)status
public abstract NSString failureReason()
-(NSString*)failureReason
public abstract void addClient(NSURLHandleClient client)
-(void)addClient:(id)
public abstract void removeClient(NSURLHandleClient client)
-(void)removeClient:(id)
public abstract void loadInBackground()
-(void)loadInBackground
public abstract void cancelLoadInBackground()
-(void)cancelLoadInBackground
public abstract NSData resourceData()
-(NSData*)resourceData
public abstract NSData availableResourceData()
-(NSData*)availableResourceData
public abstract long expectedResourceDataSize()
-(long long)expectedResourceDataSize
public abstract void flushCachedData()
-(void)flushCachedData
public abstract void backgroundLoadDidFailWithReason(NSString reason)
-(void)backgroundLoadDidFailWithReason:(NSString*)
public abstract void didLoadBytes_loadComplete(NSData newBytes, boolean yorn)
-(void)didLoadBytes:(NSData*) loadComplete:(BOOL)
public static boolean canInitWithURL(NSURL anURL)
+(BOOL)canInitWithURL:(NSURL*)
public static NSURLHandle cachedHandleForURL(NSURL anURL)
+(NSURLHandle*)cachedHandleForURL:(NSURL*)
public abstract NSURLHandle initWithURL_cached(NSURL anURL, boolean willCache)
-(id)initWithURL:(NSURL*) cached:(BOOL)
public static NSURLHandle createWithURL_cached(NSURL anURL, boolean willCache)
initWithURL_cached(org.rococoa.cocoa.foundation.NSURL, boolean)
public abstract NSObject propertyForKey(NSString propertyKey)
-(id)propertyForKey:(NSString*)
public abstract NSObject propertyForKeyIfAvailable(NSString propertyKey)
-(id)propertyForKeyIfAvailable:(NSString*)
public abstract boolean writeProperty_forKey(ObjCObject propertyValue, NSString propertyKey)
-(BOOL)writeProperty:(id) forKey:(NSString*)
public abstract boolean writeData(NSData data)
-(BOOL)writeData:(NSData*)
public abstract NSData loadInForeground()
-(NSData*)loadInForeground
public abstract void beginLoadInBackground()
-(void)beginLoadInBackground
public abstract void endLoadInBackground()
-(void)endLoadInBackground
public static NSURLHandle alloc()
public static NSURLHandle new_()
public static NSURLHandle._class_ getNSClass()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |