Package org.robovm.apple.corefoundation
Class CFURL
java.lang.Object
org.robovm.rt.bro.NativeObject
org.robovm.apple.corefoundation.CFType
org.robovm.apple.corefoundation.CFURL
- All Implemented Interfaces:
AutoCloseable
public class CFURL extends CFType
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCFURL.CFURLPtrNested classes/interfaces inherited from class org.robovm.apple.corefoundation.CFType
CFType.AsListMarshaler, CFType.CFTypePtr, CFType.Marshaler, CFType.NoRetainMarshaler -
Constructor Summary
Constructors Modifier Constructor Description protectedCFURL() -
Method Summary
Methods inherited from class org.robovm.apple.corefoundation.CFType
autorelease, close, dispose, dispose, doDispose, equalsTo, finalize, getAllocator, getDescription, getRetainCount, getTypeID, getTypeIDDescription, hash, makeCollectable, release, release, retain, retain, show, toString
-
Constructor Details
-
CFURL
protected CFURL()
-
-
Method Details
-
getClassTypeID
public static long getClassTypeID() -
asData
public static CFData asData(CFAllocator allocator, CFURL url, CFStringEncodings encoding, boolean escapeWhitespace) -
create
-
createWithFileSystemPath
public static CFURL createWithFileSystemPath(CFAllocator allocator, String filePath, CFURLPathStyle pathStyle, boolean isDirectory) -
createFromFileSystemRepresentation
public static CFURL createFromFileSystemRepresentation(CFAllocator allocator, BytePtr buffer, long bufLen, boolean isDirectory) -
createWithFileSystemPathRelativeToBase
public static CFURL createWithFileSystemPathRelativeToBase(CFAllocator allocator, String filePath, CFURLPathStyle pathStyle, boolean isDirectory, CFURL baseURL) -
createFromFileSystemRepresentationRelativeToBase
public static CFURL createFromFileSystemRepresentationRelativeToBase(CFAllocator allocator, BytePtr buffer, long bufLen, boolean isDirectory, CFURL baseURL) -
getAbsoluteURL
-
getString
-
getBaseURL
-
canBeDecomposed
public boolean canBeDecomposed() -
getScheme
-
getNetLocation
-
getPath
-
getStrictPath
-
getFileSystemPath
-
hasDirectoryPath
public boolean hasDirectoryPath() -
getResourceSpecifier
-
getHostName
-
getPortNumber
public int getPortNumber() -
getUserName
-
getPassword
-
getParameterString
Deprecated.Deprecated in iOS 13.0. The CFURLCopyParameterString function is deprecated. Post deprecation for applications linked with or after the macOS 10.15, and for all iOS, watchOS, and tvOS applications, CFURLCopyParameterString will always return NULL, and the CFURLCopyPath(), CFURLCopyStrictPath(), and CFURLCopyFileSystemPath() functions will return the complete path including the semicolon separator and params component if the URL string contains them. -
getQueryString
-
getFragment
-
getLastPathComponent
-
getPathExtension
-
createCopyByAppendingPathComponent
public static CFURL createCopyByAppendingPathComponent(CFAllocator allocator, CFURL url, String pathComponent, boolean isDirectory) -
createCopyByDeletingLastPathComponent
-
createCopyByAppendingPathExtension
public static CFURL createCopyByAppendingPathExtension(CFAllocator allocator, CFURL url, String extension) -
createCopyByDeletingPathExtension
-
decodeURLString
public static String decodeURLString(CFAllocator allocator, String originalString, String charactersToLeaveEscaped) -
decodeURLString
@Deprecated public static String decodeURLString(CFAllocator allocator, String origString, String charsToLeaveEscaped, CFStringEncodings encoding)Deprecated.Deprecated in iOS 9.0. Use [NSString stringByRemovingPercentEncoding] or CFURLCreateStringByReplacingPercentEscapes() instead, which always uses the recommended UTF-8 encoding. -
encodeURLString
@Deprecated public static String encodeURLString(CFAllocator allocator, String originalString, String charactersToLeaveUnescaped, String legalURLCharactersToBeEscaped, CFStringEncodings encoding)Deprecated.Deprecated in iOS 9.0. Use [NSString stringByAddingPercentEncodingWithAllowedCharacters:] instead, which always uses the recommended UTF-8 encoding, and which encodes for a specific URL component or subcomponent (since each URL component or subcomponent has different rules for what characters are valid). -
isFileReferenceURL
public boolean isFileReferenceURL() -
createFileReferenceURL
public static CFURL createFileReferenceURL(CFAllocator allocator, CFURL url) throws NSErrorException- Throws:
NSErrorException
-
createFilePathURL
- Throws:
NSErrorException
-
getResourceValue
public boolean getResourceValue(String key, VoidPtr propertyValueTypeRefPtr) throws NSErrorException- Throws:
NSErrorException
-
getResourceValues
- Throws:
NSErrorException
-
setResourceValue
- Throws:
NSErrorException
-
setResourceValues
- Throws:
NSErrorException
-
clearResourcePropertyCacheForKey
-
clearResourcePropertyCache
public void clearResourcePropertyCache() -
isResourceReachable
- Throws:
NSErrorException
-
startAccessingSecurityScopedResource
public boolean startAccessingSecurityScopedResource() -
stopAccessingSecurityScopedResource
public void stopAccessingSecurityScopedResource() -
getHomeDirectoryURL
-