Class NSURL

    • Constructor Detail

      • NSURL

        public NSURL​(NSURLScheme scheme,
                     java.lang.String host,
                     java.lang.String path)
      • NSURL

        public NSURL()
      • NSURL

        @Deprecated
        public NSURL​(java.lang.String scheme,
                     java.lang.String host,
                     java.lang.String path)
        Deprecated.
        Deprecated in iOS 9.0.
        Since:
        Available in iOS 2.0 and later.
      • NSURL

        public NSURL​(java.lang.String URLString)
      • NSURL

        public NSURL​(java.lang.String URLString,
                     NSURL baseURL)
      • NSURL

        public NSURL​(NSData data,
                     NSURL baseURL)
        Since:
        Available in iOS 9.0 and later.
      • NSURL

        public NSURL​(NSCoder decoder)
      • NSURL

        public NSURL​(NSData data,
                     NSURL baseURL,
                     boolean absoluteURL)
        Since:
        Available in iOS 9.0 and later.
      • NSURL

        public NSURL​(java.io.File file)
      • NSURL

        public NSURL​(java.io.File file,
                     boolean isDir)
      • NSURL

        public NSURL​(java.net.URL url)
      • NSURL

        public NSURL​(java.net.URI uri)
    • Method Detail

      • getDataRepresentation

        public NSData getDataRepresentation()
        Since:
        Available in iOS 9.0 and later.
      • getAbsoluteString

        public java.lang.String getAbsoluteString()
      • getRelativeString

        public java.lang.String getRelativeString()
      • getBaseURL

        public NSURL getBaseURL()
      • getAbsoluteURL

        public NSURL getAbsoluteURL()
      • getScheme

        public java.lang.String getScheme()
      • getResourceSpecifier

        public java.lang.String getResourceSpecifier()
      • getHost

        public java.lang.String getHost()
      • getUser

        public java.lang.String getUser()
      • getPassword

        public java.lang.String getPassword()
      • getPath

        public java.lang.String getPath()
      • getFragment

        public java.lang.String getFragment()
      • getParameterString

        public java.lang.String getParameterString()
      • getQuery

        public java.lang.String getQuery()
      • getRelativePath

        public java.lang.String getRelativePath()
      • hasDirectoryPath

        public boolean hasDirectoryPath()
        Since:
        Available in iOS 9.0 and later.
      • isFileURL

        public boolean isFileURL()
      • getStandardizedURL

        public NSURL getStandardizedURL()
      • getFilePathURL

        public NSURL getFilePathURL()
        Since:
        Available in iOS 4.0 and later.
      • getPathComponents

        public java.util.List<java.lang.String> getPathComponents()
        Since:
        Available in iOS 4.0 and later.
      • getLastPathComponent

        public java.lang.String getLastPathComponent()
        Since:
        Available in iOS 4.0 and later.
      • getPathExtension

        public java.lang.String getPathExtension()
        Since:
        Available in iOS 4.0 and later.
      • getURLByDeletingLastPathComponent

        public NSURL getURLByDeletingLastPathComponent()
        Since:
        Available in iOS 4.0 and later.
      • getURLByDeletingPathExtension

        public NSURL getURLByDeletingPathExtension()
        Since:
        Available in iOS 4.0 and later.
      • getURLByStandardizingPath

        public NSURL getURLByStandardizingPath()
        Since:
        Available in iOS 4.0 and later.
      • getURLByResolvingSymlinksInPath

        public NSURL getURLByResolvingSymlinksInPath()
        Since:
        Available in iOS 4.0 and later.
      • supportsSecureCoding

        public static boolean supportsSecureCoding()
      • getReadableTypeIdentifiersForItemProvider

        public static NSArray<NSString> getReadableTypeIdentifiersForItemProvider()
      • getWritableTypeIdentifiersForItemProvider0

        public static NSArray<NSString> getWritableTypeIdentifiersForItemProvider0()
      • toURL

        public java.net.URL toURL()
                           throws java.net.MalformedURLException
        Throws:
        java.net.MalformedURLException
      • toURI

        public java.net.URI toURI()
                           throws java.net.URISyntaxException
        Throws:
        java.net.URISyntaxException
      • encodeURLString

        public static java.lang.String encodeURLString​(java.lang.String urlString,
                                                       NSStringEncoding encoding)
      • decodeURLString

        public static java.lang.String decodeURLString​(java.lang.String urlString,
                                                       NSStringEncoding encoding)
      • removeCachedResourceValue

        public void removeCachedResourceValue​(NSURLFileSystemProperty property)
        Since:
        Available in iOS 7.0 and later.
      • removeCachedResourceValue

        public void removeCachedResourceValue​(NSURLFileProperty property)
        Since:
        Available in iOS 7.0 and later.
      • removeCachedResourceValue

        public void removeCachedResourceValue​(NSURLVolumeProperty property)
        Since:
        Available in iOS 7.0 and later.
      • removeCachedResourceValue

        public void removeCachedResourceValue​(NSURLUbiquitousItemProperty property)
        Since:
        Available in iOS 7.0 and later.
      • setTemporaryResourceValue

        public void setTemporaryResourceValue​(NSURLFileSystemProperty property,
                                              NSObject value)
        Since:
        Available in iOS 7.0 and later.
      • setTemporaryResourceValue

        public void setTemporaryResourceValue​(NSURLFileProperty property,
                                              NSObject value)
        Since:
        Available in iOS 7.0 and later.
      • setTemporaryResourceValue

        public void setTemporaryResourceValue​(NSURLVolumeProperty property,
                                              NSObject value)
        Since:
        Available in iOS 7.0 and later.
      • init

        @Deprecated
        protected long init​(java.lang.String scheme,
                            java.lang.String host,
                            java.lang.String path)
        Deprecated.
        Deprecated in iOS 9.0.
        Since:
        Available in iOS 2.0 and later.
      • initFileURL

        protected long initFileURL​(java.lang.String path,
                                   boolean isDir,
                                   NSURL baseURL)
        Since:
        Available in iOS 9.0 and later.
      • initFileURL

        protected long initFileURL​(java.lang.String path,
                                   NSURL baseURL)
        Since:
        Available in iOS 9.0 and later.
      • initFileURL

        protected long initFileURL​(java.lang.String path,
                                   boolean isDir)
        Since:
        Available in iOS 2.0 and later.
      • initFileURL

        protected long initFileURL​(java.lang.String path)
      • init

        protected long init​(java.lang.String URLString)
      • init

        protected long init​(java.lang.String URLString,
                            NSURL baseURL)
      • init

        protected long init​(NSData data,
                            NSURL baseURL)
        Since:
        Available in iOS 9.0 and later.
      • initAbsoluteURL

        protected long initAbsoluteURL​(NSData data,
                                       NSURL baseURL)
        Since:
        Available in iOS 9.0 and later.
      • getFileSystemRepresentation

        public boolean getFileSystemRepresentation​(org.robovm.rt.bro.ptr.BytePtr buffer,
                                                   long maxBufferLength)
        Since:
        Available in iOS 7.0 and later.
      • isFileReferenceURL

        public boolean isFileReferenceURL()
        Since:
        Available in iOS 4.0 and later.
      • getFileReferenceURL

        public NSURL getFileReferenceURL()
        Since:
        Available in iOS 4.0 and later.
      • removeCachedResourceValue

        protected void removeCachedResourceValue​(NSString key)
        Since:
        Available in iOS 7.0 and later.
      • removeAllCachedResourceValues

        public void removeAllCachedResourceValues()
        Since:
        Available in iOS 7.0 and later.
      • setTemporaryResourceValue

        protected void setTemporaryResourceValue​(NSObject value,
                                                 NSString key)
        Since:
        Available in iOS 7.0 and later.
      • startAccessingSecurityScopedResource

        public boolean startAccessingSecurityScopedResource()
        Since:
        Available in iOS 8.0 and later.
      • stopAccessingSecurityScopedResource

        public void stopAccessingSecurityScopedResource()
        Since:
        Available in iOS 8.0 and later.
      • getResourceValuesFromBookmarkData

        public static NSURLProperties getResourceValuesFromBookmarkData​(java.util.List<NSURLProperty> keys,
                                                                        NSData bookmarkData)
        Since:
        Available in iOS 4.0 and later.
      • newURLByAppendingPathComponent

        public NSURL newURLByAppendingPathComponent​(java.lang.String pathComponent)
        Since:
        Available in iOS 4.0 and later.
      • newURLByAppendingPathComponent

        public NSURL newURLByAppendingPathComponent​(java.lang.String pathComponent,
                                                    boolean isDirectory)
        Since:
        Available in iOS 5.0 and later.
      • newURLByAppendingPathExtension

        public NSURL newURLByAppendingPathExtension​(java.lang.String pathExtension)
        Since:
        Available in iOS 4.0 and later.
      • init

        protected long init​(NSCoder decoder)