org.rococoa.cocoa.foundation
Class NSURLCache
java.lang.Object
org.rococoa.cocoa.foundation.NSObject
org.rococoa.cocoa.foundation.NSURLCache
- All Implemented Interfaces:
- NSObject, ObjCObject
public abstract class NSURLCache
- extends NSObject
- implements ObjCObject
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.
Methods inherited from class org.rococoa.cocoa.foundation.NSObject |
as_NSObject_NSAccessibility, as_NSObject_NSAccessibilityAdditions, as_NSObject_NSApplicationScriptingDelegation, as_NSObject_NSArchiverCallback, as_NSObject_NSClassDescriptionPrimitives, as_NSObject_NSCoderMethods, as_NSObject_NSColorPanelResponderMethod, as_NSObject_NSComparisonMethods, as_NSObject_NSControlSubclassNotifications, as_NSObject_NSCopyLinkMoveHandler, as_NSObject_NSDelayedPerforming, as_NSObject_NSDeprecatedKeyValueCoding, as_NSObject_NSDeprecatedKeyValueObservingCustomization, as_NSObject_NSDeprecatedMethods, as_NSObject_NSDictionaryControllerKeyValuePair, as_NSObject_NSDistributedObjects, as_NSObject_NSDraggingDestination, as_NSObject_NSDraggingSource, as_NSObject_NSDraggingSourceDeprecated, as_NSObject_NSEditor, as_NSObject_NSEditorRegistration, as_NSObject_NSErrorRecoveryAttempting, as_NSObject_NSFileManagerFileOperationAdditions, as_NSObject_NSFontManagerDelegate, as_NSObject_NSFontManagerResponderMethod, as_NSObject_NSFontPanelValidationAdditions, as_NSObject_NSKeyValueBindingCreation, as_NSObject_NSKeyValueCoding, as_NSObject_NSKeyValueObserverNotification, as_NSObject_NSKeyValueObserverRegistration, as_NSObject_NSKeyValueObserving, as_NSObject_NSKeyValueObservingCustomization, as_NSObject_NSMenuValidation, as_NSObject_NSNibAwaking, as_NSObject_NSPasteboardOwner, as_NSObject_NSPlaceholders, as_NSObject_NSScriptClassDescription, as_NSObject_NSScripting, as_NSObject_NSScriptingComparisonMethods, as_NSObject_NSScriptKeyValueCoding, as_NSObject_NSScriptObjectSpecifiers, as_NSObject_NSThreadPerformAdditions, as_NSObject_NSURLClient, as_NSObject_NSURLConnectionDelegate, as_NSObject_NSURLDownloadDelegate, copy, create, dealloc, description, doesNotRecognizeSelector, finalize, forwardingTargetForSelector, forwardInvocation, init, isKindOfClass, isKindOfClass, methodForSelector, methodSignatureForSelector, mutableCopy, release, retain, retainCount |
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 |
NSURLCache
public NSURLCache()
sharedURLCache
public static NSURLCache sharedURLCache()
setSharedURLCache
public static void setSharedURLCache(NSURLCache cache)
- Parameters:
cache
- the new shared NSURLCache instance.
Original signature : +(void)setSharedURLCache:(NSURLCache*)
native declaration : NSURLCache.h:163
initWithMemoryCapacity_diskCapacity_diskPath
public abstract NSURLCache initWithMemoryCapacity_diskCapacity_diskPath(NSUInteger memoryCapacity,
NSUInteger diskCapacity,
NSString path)
- Parameters:
capacity
- the capacity, measured in bytes, for the cache.
path
- the path on disk where the cache data is stored.
createWithMemoryCapacity_diskCapacity_diskPath
public static NSURLCache createWithMemoryCapacity_diskCapacity_diskPath(NSUInteger memoryCapacity,
NSUInteger diskCapacity,
NSString path)
- Factory method
- See Also:
initWithMemoryCapacity_diskCapacity_diskPath(org.rococoa.cocoa.foundation.NSUInteger, org.rococoa.cocoa.foundation.NSUInteger, org.rococoa.cocoa.foundation.NSString)
cachedResponseForRequest
public abstract NSCachedURLResponse cachedResponseForRequest(NSURLRequest request)
- Parameters:
request
- the NSURLRequest to use as a key for the lookup.
storeCachedResponse_forRequest
public abstract void storeCachedResponse_forRequest(NSCachedURLResponse cachedResponse,
NSURLRequest request)
- Parameters:
cachedResponse
- The cached response to store.
request
- the NSURLRequest to use as a key for the storage.
Original signature : -(void)storeCachedResponse:(NSCachedURLResponse*) forRequest:(NSURLRequest*)
native declaration : NSURLCache.h:200
removeCachedResponseForRequest
public abstract void removeCachedResponseForRequest(NSURLRequest request)
- Parameters:
request
- the NSURLRequest to use as a key for the lookup.
Original signature : -(void)removeCachedResponseForRequest:(NSURLRequest*)
native declaration : NSURLCache.h:210
removeAllCachedResponses
public abstract void removeAllCachedResponses()
memoryCapacity
public abstract NSUInteger memoryCapacity()
diskCapacity
public abstract NSUInteger diskCapacity()
setMemoryCapacity
public abstract void setMemoryCapacity(NSUInteger memoryCapacity)
- Parameters:
memoryCapacity
- the new in-memory capacity, measured in
bytes, for the receiver.
Original signature : -(void)setMemoryCapacity:(NSUInteger)
native declaration : NSURLCache.h:241
setDiskCapacity
public abstract void setDiskCapacity(NSUInteger diskCapacity)
- Parameters:
diskCapacity
- the new on-disk capacity, measured in
bytes, for the receiver.
Original signature : -(void)setDiskCapacity:(NSUInteger)
native declaration : NSURLCache.h:251
currentMemoryUsage
public abstract NSUInteger currentMemoryUsage()
currentDiskUsage
public abstract NSUInteger currentDiskUsage()
alloc
public static NSURLCache alloc()
new_
public static NSURLCache new_()
getNSClass
public static NSURLCache._class_ getNSClass()
Copyright © 2009. All Rights Reserved.