org.rococoa.cocoa.foundation
Class NSURLDownload
java.lang.Object
org.rococoa.cocoa.foundation.NSObject
org.rococoa.cocoa.foundation.NSURLDownload
- All Implemented Interfaces:
- NSObject, ObjCObject
public abstract class NSURLDownload
- extends NSObject
- implements ObjCObject
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 |
NSURLDownload
public NSURLDownload()
canResumeDownloadDecodedWithEncodingMIMEType
public static boolean canResumeDownloadDecodedWithEncodingMIMEType(NSString MIMEType)
- Parameters:
MIMEType
- The encoding MIME type.
initWithRequest_delegate
public abstract NSURLDownload initWithRequest_delegate(NSURLRequest request,
ObjCObject delegate)
- Parameters:
request
- The request to download. Must not be nil.
delegate
- The delegate of the download.
createWithRequest_delegate
public static NSURLDownload createWithRequest_delegate(NSURLRequest request,
ObjCObject delegate)
- Factory method
- See Also:
initWithRequest_delegate(org.rococoa.cocoa.foundation.NSURLRequest, org.rococoa.ObjCObject)
initWithResumeData_delegate_path
public abstract NSURLDownload initWithResumeData_delegate_path(NSData resumeData,
ObjCObject delegate,
NSString path)
- Parameters:
resumeData
- The resume data from the previous download.
delegate
- The delegate of the download.
path
- The path of the incomplete downloaded file.
createWithResumeData_delegate_path
public static NSURLDownload createWithResumeData_delegate_path(NSData resumeData,
ObjCObject delegate,
NSString path)
- Factory method
- See Also:
initWithResumeData_delegate_path(org.rococoa.cocoa.foundation.NSData, org.rococoa.ObjCObject, org.rococoa.cocoa.foundation.NSString)
cancel
public abstract void cancel()
setDestination_allowOverwrite
public abstract void setDestination_allowOverwrite(NSString path,
boolean allowOverwrite)
- Parameters:
path
- The destination path of the downloaded file.
allowOverwrite
- Allows a file of the same path to be overwritten.
request
public abstract NSURLRequest request()
resumeData
public abstract NSData resumeData()
setDeletesFileUponFailure
public abstract void setDeletesFileUponFailure(boolean deletesFileUponFailure)
- Parameters:
deletesFileUponFailure
- The value of deletesFileUponFailure.
deletesFileUponFailure
public abstract boolean deletesFileUponFailure()
alloc
public static NSURLDownload alloc()
new_
public static NSURLDownload new_()
getNSClass
public static NSURLDownload._class_ getNSClass()
Copyright © 2009. All Rights Reserved.