public java.net.URL toURL() throws java.net.MalformedURLException { return new java.net.URL(getAbsoluteString()); } public java.net.URI toURI() throws java.net.URISyntaxException {
/** * @since Available in iOS 9.0 and later. */ public NSURL(NSData data, NSURL baseURL) { super((SkipInit) null); initObject(init(data, baseURL)); } /**
/** * @since Available in iOS 9.0 and later. */ public NSURL(NSData data, NSURL baseURL, boolean absoluteURL) { super((SkipInit) null); initObject(absoluteURL ? initAbsoluteURL(data, baseURL) : init(data, baseURL)); }
public NSURL(File file, boolean isDir) { super((SkipInit) null); initObject(initFileURL(file.getAbsolutePath(), isDir)); } public NSURL(java.net.URL url) {
/** * @since Available in iOS 4.0 and later. * @throws NSErrorException */ public NSObject getResourceValue(NSURLFileProperty property) throws NSErrorException { return getResourceValue(property.value()); } /**
/** * @since Available in iOS 8.0 and later. */ public boolean getPromisedItemResourceValue(NSObject.NSObjectPtr value, NSString key) throws NSErrorException { NSError.NSErrorPtr ptr = new NSError.NSErrorPtr(); boolean result = getPromisedItemResourceValue(value, key, ptr); if (ptr.get() != null) { throw new NSErrorException(ptr.get()); } return result; } /**
/** * @since Available in iOS 4.0 and later. */ public boolean checkResourceIsReachable() throws NSErrorException { NSError.NSErrorPtr ptr = new NSError.NSErrorPtr(); boolean result = checkResourceIsReachable(ptr); if (ptr.get() != null) { throw new NSErrorException(ptr.get()); } return result; } /**
/** * @since Available in iOS 8.0 and later. */ public NSURLProperties getPromisedItemResourceValues(@com.bugvm.rt.bro.annotation.Marshaler(NSURLProperty.AsListMarshaler.class) List<NSURLProperty> keys) throws NSErrorException { NSError.NSErrorPtr ptr = new NSError.NSErrorPtr(); NSURLProperties result = getPromisedItemResourceValues(keys, ptr); if (ptr.get() != null) { throw new NSErrorException(ptr.get()); } return result; } /**
/** * @since Available in iOS 4.0 and later. */ public NSURLProperties getResourceValues(@com.bugvm.rt.bro.annotation.Marshaler(NSURLProperty.AsListMarshaler.class) List<NSURLProperty> keys) throws NSErrorException { NSError.NSErrorPtr ptr = new NSError.NSErrorPtr(); NSURLProperties result = getResourceValues(keys, ptr); if (ptr.get() != null) { throw new NSErrorException(ptr.get()); } return result; } /**
/** * @since Available in iOS 4.0 and later. */ public static NSData createBookmarkData(NSURL bookmarkFileURL) throws NSErrorException { NSError.NSErrorPtr ptr = new NSError.NSErrorPtr(); NSData result = createBookmarkData(bookmarkFileURL, ptr); if (ptr.get() != null) { throw new NSErrorException(ptr.get()); } return result; } /**
public NSURL(File file) { super((SkipInit) null); initObject(initFileURL(file.getAbsolutePath())); } public NSURL(File file, boolean isDir) {
/** * @since Available in iOS 4.0 and later. * @throws NSErrorException */ public NSObject getResourceValue(NSURLFileSystemProperty property) throws NSErrorException { return getResourceValue(property.value()); } /**
/** * @since Available in iOS 8.0 and later. */ public boolean getPromisedItemResourceValue(NSObject.NSObjectPtr value, NSString key) throws NSErrorException { NSError.NSErrorPtr ptr = new NSError.NSErrorPtr(); boolean result = getPromisedItemResourceValue(value, key, ptr); if (ptr.get() != null) { throw new NSErrorException(ptr.get()); } return result; } /**
/** * @since Available in iOS 4.0 and later. */ public boolean checkResourceIsReachable() throws NSErrorException { NSError.NSErrorPtr ptr = new NSError.NSErrorPtr(); boolean result = checkResourceIsReachable(ptr); if (ptr.get() != null) { throw new NSErrorException(ptr.get()); } return result; } /**
/** * @since Available in iOS 8.0 and later. */ public NSURLProperties getPromisedItemResourceValues(@com.bugvm.rt.bro.annotation.Marshaler(NSURLProperty.AsListMarshaler.class) List<NSURLProperty> keys) throws NSErrorException { NSError.NSErrorPtr ptr = new NSError.NSErrorPtr(); NSURLProperties result = getPromisedItemResourceValues(keys, ptr); if (ptr.get() != null) { throw new NSErrorException(ptr.get()); } return result; } /**
/** * @since Available in iOS 4.0 and later. */ public NSURLProperties getResourceValues(@com.bugvm.rt.bro.annotation.Marshaler(NSURLProperty.AsListMarshaler.class) List<NSURLProperty> keys) throws NSErrorException { NSError.NSErrorPtr ptr = new NSError.NSErrorPtr(); NSURLProperties result = getResourceValues(keys, ptr); if (ptr.get() != null) { throw new NSErrorException(ptr.get()); } return result; } /**
/** * @since Available in iOS 4.0 and later. */ public static NSData createBookmarkData(NSURL bookmarkFileURL) throws NSErrorException { NSError.NSErrorPtr ptr = new NSError.NSErrorPtr(); NSData result = createBookmarkData(bookmarkFileURL, ptr); if (ptr.get() != null) { throw new NSErrorException(ptr.get()); } return result; } /**
/** * @since Available in iOS 9.0 and later. */ public NSURL(NSData data, NSURL baseURL) { super((SkipInit) null); initObject(init(data, baseURL)); } /**
/** * @since Available in iOS 9.0 and later. */ public NSURL(NSData data, NSURL baseURL, boolean absoluteURL) { super((SkipInit) null); initObject(absoluteURL ? initAbsoluteURL(data, baseURL) : init(data, baseURL)); }
public NSURL(File file) { super((SkipInit) null); initObject(initFileURL(file.getAbsolutePath())); } public NSURL(File file, boolean isDir) {