Package org.robovm.apple.foundation
Class NSString
- java.lang.Object
-
- org.robovm.rt.bro.NativeObject
-
- org.robovm.objc.ObjCObject
-
- org.robovm.apple.foundation.NSObject
-
- org.robovm.apple.foundation.NSString
-
- All Implemented Interfaces:
NSObjectProtocol
,NSPropertyList
,org.robovm.objc.ObjCProtocol
- Direct Known Subclasses:
CSLocalizedString
,NSMutableString
public class NSString extends NSObject implements NSPropertyList
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
NSString.AsStringMarshaler
static class
NSString.NSStringPtr
-
Nested classes/interfaces inherited from class org.robovm.apple.foundation.NSObject
NSObject.Handle, NSObject.Marshaler, NSObject.NoRetainMarshaler, NSObject.NSKeyValueObserver, NSObject.NSObjectPtr, NSObject.SkipInit
-
-
Field Summary
-
Fields inherited from class org.robovm.apple.foundation.NSObject
FLAG_NO_RETAIN
-
-
Constructor Summary
Constructors Modifier Constructor Description NSString()
NSString(java.lang.String s)
protected
NSString(NSObject.Handle h, long handle)
protected
NSString(NSObject.SkipInit skipInit)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected static java.lang.String
addPercentEncoding(long handle, org.robovm.objc.Selector sel, NSCharacterSet allowedCharacters)
static java.lang.String
addPercentEncoding(java.lang.String str, NSCharacterSet allowedCharacters)
java.lang.String
addPercentEncoding(NSCharacterSet allowedCharacters)
protected static java.lang.String
addPercentEscapes(long handle, org.robovm.objc.Selector sel, NSStringEncoding encoding)
static java.lang.String
addPercentEscapes(java.lang.String str, NSStringEncoding encoding)
java.lang.String
addPercentEscapes(NSStringEncoding enc)
Deprecated.Deprecated in iOS 9.0.protected static java.lang.String
appendPathComponent(long handle, org.robovm.objc.Selector sel, java.lang.String component)
java.lang.String
appendPathComponent(java.lang.String str)
static java.lang.String
appendPathComponent(java.lang.String str, java.lang.String component)
protected static java.lang.String
appendPathExtension(long handle, org.robovm.objc.Selector sel, java.lang.String extension)
java.lang.String
appendPathExtension(java.lang.String str)
static java.lang.String
appendPathExtension(java.lang.String str, java.lang.String extension)
protected static long
create(long characters, long length)
static void
draw(java.lang.String str, CGPoint point, CMTextMarkupAttributes attrs)
static void
draw(java.lang.String str, CGPoint point, CTAttributedStringAttributes attrs)
static void
draw(java.lang.String str, CGPoint point, NSDictionary<NSString,NSObject> attrs)
static void
draw(java.lang.String str, CGPoint point, NSAttributedStringAttributes attrs)
static void
draw(java.lang.String str, CGRect rect, CMTextMarkupAttributes attrs)
static void
draw(java.lang.String str, CGRect rect, CTAttributedStringAttributes attrs)
static void
draw(java.lang.String str, CGRect rect, NSDictionary<NSString,NSObject> attrs)
static void
draw(java.lang.String str, CGRect rect, NSAttributedStringAttributes attrs)
static void
draw(java.lang.String str, CGRect rect, NSStringDrawingOptions options, CMTextMarkupAttributes attributes, NSStringDrawingContext context)
static void
draw(java.lang.String str, CGRect rect, NSStringDrawingOptions options, CTAttributedStringAttributes attributes, NSStringDrawingContext context)
static void
draw(java.lang.String str, CGRect rect, NSStringDrawingOptions options, NSDictionary<NSString,NSObject> attributes, NSStringDrawingContext context)
static void
draw(java.lang.String str, CGRect rect, NSStringDrawingOptions options, NSAttributedStringAttributes attributes, NSStringDrawingContext context)
CGSize
draw(CGPoint point, double width, UIFont font, double fontSize, NSLineBreakMode lineBreakMode, UIBaselineAdjustment baselineAdjustment)
Deprecated.Deprecated in iOS 7.0.CGSize
draw(CGPoint point, double width, UIFont font, NSLineBreakMode lineBreakMode)
Deprecated.Deprecated in iOS 7.0.void
draw(CGPoint point, CMTextMarkupAttributes attrs)
void
draw(CGPoint point, CTAttributedStringAttributes attrs)
void
draw(CGPoint point, NSDictionary<NSString,NSObject> attrs)
void
draw(CGPoint point, NSAttributedStringAttributes attrs)
CGSize
draw(CGPoint point, UIFont font)
Deprecated.Deprecated in iOS 7.0.void
draw(CGRect rect, CMTextMarkupAttributes attrs)
void
draw(CGRect rect, CTAttributedStringAttributes attrs)
void
draw(CGRect rect, NSDictionary<NSString,NSObject> attrs)
void
draw(CGRect rect, NSAttributedStringAttributes attrs)
void
draw(CGRect rect, NSStringDrawingOptions options, CMTextMarkupAttributes attributes, NSStringDrawingContext context)
void
draw(CGRect rect, NSStringDrawingOptions options, CTAttributedStringAttributes attributes, NSStringDrawingContext context)
void
draw(CGRect rect, NSStringDrawingOptions options, NSDictionary<NSString,NSObject> attributes, NSStringDrawingContext context)
void
draw(CGRect rect, NSStringDrawingOptions options, NSAttributedStringAttributes attributes, NSStringDrawingContext context)
CGSize
draw(CGRect rect, UIFont font)
Deprecated.Deprecated in iOS 7.0.CGSize
draw(CGRect rect, UIFont font, NSLineBreakMode lineBreakMode, NSTextAlignment alignment)
Deprecated.Deprecated in iOS 7.0.CGSize
draw(NSString thiz, CGRect rect, UIFont font, NSLineBreakMode lineBreakMode)
Deprecated.Deprecated in iOS 7.0.static CGRect
getBoundingRect(java.lang.String str, CGSize size, NSStringDrawingOptions options, CMTextMarkupAttributes attributes, NSStringDrawingContext context)
static CGRect
getBoundingRect(java.lang.String str, CGSize size, NSStringDrawingOptions options, CTAttributedStringAttributes attributes, NSStringDrawingContext context)
static CGRect
getBoundingRect(java.lang.String str, CGSize size, NSStringDrawingOptions options, NSDictionary<NSString,NSObject> attributes, NSStringDrawingContext context)
static CGRect
getBoundingRect(java.lang.String str, CGSize size, NSStringDrawingOptions options, NSAttributedStringAttributes attributes, NSStringDrawingContext context)
CGRect
getBoundingRect(CGSize size, NSStringDrawingOptions options, CMTextMarkupAttributes attributes, NSStringDrawingContext context)
CGRect
getBoundingRect(CGSize size, NSStringDrawingOptions options, CTAttributedStringAttributes attributes, NSStringDrawingContext context)
CGRect
getBoundingRect(CGSize size, NSStringDrawingOptions options, NSDictionary<NSString,NSObject> attributes, NSStringDrawingContext context)
CGRect
getBoundingRect(CGSize size, NSStringDrawingOptions options, NSAttributedStringAttributes attributes, NSStringDrawingContext context)
protected void
getCharacters(long buffer, NSRange range)
protected static void
getCharacters(long handle, org.robovm.objc.Selector sel, long buffer, NSRange aRange)
protected short
getCharactersAt(long index)
protected static long
getChars(java.lang.String s)
static java.lang.String
getLocalizedString(java.lang.String key)
static CGSize
getSize(java.lang.String str, CMTextMarkupAttributes attrs)
static CGSize
getSize(java.lang.String str, CTAttributedStringAttributes attrs)
static CGSize
getSize(java.lang.String str, NSDictionary<NSString,NSObject> attrs)
static CGSize
getSize(java.lang.String str, NSAttributedStringAttributes attrs)
CGSize
getSize(CMTextMarkupAttributes attrs)
CGSize
getSize(CTAttributedStringAttributes attrs)
CGSize
getSize(NSDictionary<NSString,NSObject> attrs)
CGSize
getSize(NSAttributedStringAttributes attrs)
CGSize
getSize(UIFont font)
Deprecated.Deprecated in iOS 7.0.CGSize
getSize(UIFont font, double minFontSize, double width, NSLineBreakMode lineBreakMode)
Deprecated.Deprecated in iOS 7.0.CGSize
getSize(UIFont font, double width, NSLineBreakMode lineBreakMode)
Deprecated.Deprecated in iOS 7.0.CGSize
getSize(UIFont font, CGSize size)
Deprecated.Deprecated in iOS 7.0.CGSize
getSize(UIFont font, CGSize size, NSLineBreakMode lineBreakMode)
Deprecated.Deprecated in iOS 7.0.protected static java.lang.String
hasPrefix(long handle, org.robovm.objc.Selector sel, java.lang.String prefix)
boolean
hasPrefix(java.lang.String str)
static java.lang.String
hasPrefix(java.lang.String str, java.lang.String prefix)
protected static java.lang.String
hasSuffix(long handle, org.robovm.objc.Selector sel, java.lang.String suffix)
boolean
hasSuffix(java.lang.String str)
static java.lang.String
hasSuffix(java.lang.String str, java.lang.String suffix)
protected long
init(long characters, long length)
protected long
length()
protected static long
length(long handle, org.robovm.objc.Selector sel)
protected static NSRange
rangeOf(long handle, org.robovm.objc.Selector sel, java.lang.String string)
static NSRange
rangeOf(java.lang.String str, java.lang.String search)
static java.lang.String
readFile(java.io.File path, NSStringEncoding enc)
static java.lang.String
readFile(java.lang.String path, NSStringEncoding enc)
static java.lang.String
readURL(NSURL url, NSStringEncoding enc)
protected static java.lang.String
replacePercentEscapes(long handle, org.robovm.objc.Selector sel, NSStringEncoding encoding)
static java.lang.String
replacePercentEscapes(java.lang.String str, NSStringEncoding encoding)
java.lang.String
replacePercentEscapes(NSStringEncoding enc)
Deprecated.Deprecated in iOS 9.0.protected static NSData
toData(long handle, org.robovm.objc.Selector sel, NSStringEncoding encoding)
protected static NSData
toData(long handle, org.robovm.objc.Selector sel, NSStringEncoding encoding, boolean lossy)
static NSData
toData(java.lang.String str, NSStringEncoding encoding)
static NSData
toData(java.lang.String str, NSStringEncoding encoding, boolean lossy)
NSData
toData(NSStringEncoding encoding)
NSData
toData(NSStringEncoding encoding, boolean lossy)
java.lang.String
toString()
boolean
writeFile(java.lang.String path, boolean atomically, NSStringEncoding enc)
boolean
writeURL(NSURL url, boolean atomically, NSStringEncoding enc)
-
Methods inherited from class org.robovm.apple.foundation.NSObject
addKeyValueObserver, addKeyValueObserver, afterMarshaled, alloc, autorelease, autorelease, awakeFromNib, conformsToProtocol, copy, description, didChangeValue, didChangeValue, didChangeValues, doDispose, equals, forceSkipInit, getAutoContentAccessingProxy, getClassForCoder, getClassForKeyedArchiver, getKeyValueCoder, getObservationInfo, hash, hashCode, init, isEqual, isKindOfClass, isMemberOfClass, mutableCopy, performSelector, performSelector, performSelector, performSelector, performSelector, performSelector, performSelector, performSelectorInBackground, performSelectorOnMainThread, performSelectorOnMainThread, performSelectorV, performSelectorV, performSelectorV, release, release, removeKeyValueObserver, removeKeyValueObservers, respondsToSelector, retain, retain, retainCount, setObservationInfo, willChangeValue, willChangeValue, willChangeValues
-
-
-
-
Constructor Detail
-
NSString
public NSString(java.lang.String s)
-
NSString
public NSString()
-
NSString
protected NSString(NSObject.Handle h, long handle)
-
NSString
protected NSString(NSObject.SkipInit skipInit)
-
-
Method Detail
-
length
protected long length()
-
getChars
protected static long getChars(java.lang.String s)
-
length
protected static long length(long handle, org.robovm.objc.Selector sel)
-
getCharacters
protected static void getCharacters(long handle, org.robovm.objc.Selector sel, long buffer, NSRange aRange)
-
getLocalizedString
public static java.lang.String getLocalizedString(java.lang.String key)
-
getSize
@Deprecated public CGSize getSize(UIFont font)
Deprecated.Deprecated in iOS 7.0.- Since:
- Available in iOS 2.0 and later.
-
getSize
@Deprecated public CGSize getSize(UIFont font, double width, NSLineBreakMode lineBreakMode)
Deprecated.Deprecated in iOS 7.0.- Since:
- Available in iOS 2.0 and later.
-
draw
@Deprecated public CGSize draw(CGPoint point, UIFont font)
Deprecated.Deprecated in iOS 7.0.- Since:
- Available in iOS 2.0 and later.
-
draw
@Deprecated public CGSize draw(CGPoint point, double width, UIFont font, NSLineBreakMode lineBreakMode)
Deprecated.Deprecated in iOS 7.0.- Since:
- Available in iOS 2.0 and later.
-
getSize
@Deprecated public CGSize getSize(UIFont font, CGSize size)
Deprecated.Deprecated in iOS 7.0.- Since:
- Available in iOS 2.0 and later.
-
getSize
@Deprecated public CGSize getSize(UIFont font, CGSize size, NSLineBreakMode lineBreakMode)
Deprecated.Deprecated in iOS 7.0.- Since:
- Available in iOS 2.0 and later.
-
draw
@Deprecated public CGSize draw(CGRect rect, UIFont font)
Deprecated.Deprecated in iOS 7.0.- Since:
- Available in iOS 2.0 and later.
-
draw
@Deprecated public CGSize draw(NSString thiz, CGRect rect, UIFont font, NSLineBreakMode lineBreakMode)
Deprecated.Deprecated in iOS 7.0.- Since:
- Available in iOS 2.0 and later.
-
draw
@Deprecated public CGSize draw(CGRect rect, UIFont font, NSLineBreakMode lineBreakMode, NSTextAlignment alignment)
Deprecated.Deprecated in iOS 7.0.- Since:
- Available in iOS 2.0 and later.
-
getSize
@Deprecated public CGSize getSize(UIFont font, double minFontSize, double width, NSLineBreakMode lineBreakMode)
Deprecated.Deprecated in iOS 7.0.- Since:
- Available in iOS 2.0 and later.
-
draw
@Deprecated public CGSize draw(CGPoint point, double width, UIFont font, double fontSize, NSLineBreakMode lineBreakMode, UIBaselineAdjustment baselineAdjustment)
Deprecated.Deprecated in iOS 7.0.- Since:
- Available in iOS 2.0 and later.
-
getSize
public CGSize getSize(NSDictionary<NSString,NSObject> attrs)
- Since:
- Available in iOS 7.0 and later.
-
getSize
public CGSize getSize(NSAttributedStringAttributes attrs)
- Since:
- Available in iOS 7.0 and later.
-
getSize
public CGSize getSize(CMTextMarkupAttributes attrs)
- Since:
- Available in iOS 7.0 and later.
-
getSize
public CGSize getSize(CTAttributedStringAttributes attrs)
- Since:
- Available in iOS 7.0 and later.
-
getSize
public static CGSize getSize(java.lang.String str, NSDictionary<NSString,NSObject> attrs)
- Since:
- Available in iOS 7.0 and later.
-
getSize
public static CGSize getSize(java.lang.String str, NSAttributedStringAttributes attrs)
- Since:
- Available in iOS 7.0 and later.
-
getSize
public static CGSize getSize(java.lang.String str, CMTextMarkupAttributes attrs)
- Since:
- Available in iOS 7.0 and later.
-
getSize
public static CGSize getSize(java.lang.String str, CTAttributedStringAttributes attrs)
- Since:
- Available in iOS 7.0 and later.
-
draw
public void draw(CGPoint point, NSDictionary<NSString,NSObject> attrs)
- Since:
- Available in iOS 7.0 and later.
-
draw
public void draw(CGPoint point, NSAttributedStringAttributes attrs)
- Since:
- Available in iOS 7.0 and later.
-
draw
public void draw(CGPoint point, CMTextMarkupAttributes attrs)
- Since:
- Available in iOS 7.0 and later.
-
draw
public void draw(CGPoint point, CTAttributedStringAttributes attrs)
- Since:
- Available in iOS 7.0 and later.
-
draw
public static void draw(java.lang.String str, CGPoint point, NSDictionary<NSString,NSObject> attrs)
- Since:
- Available in iOS 7.0 and later.
-
draw
public static void draw(java.lang.String str, CGPoint point, NSAttributedStringAttributes attrs)
- Since:
- Available in iOS 7.0 and later.
-
draw
public static void draw(java.lang.String str, CGPoint point, CMTextMarkupAttributes attrs)
- Since:
- Available in iOS 7.0 and later.
-
draw
public static void draw(java.lang.String str, CGPoint point, CTAttributedStringAttributes attrs)
- Since:
- Available in iOS 7.0 and later.
-
draw
public void draw(CGRect rect, NSDictionary<NSString,NSObject> attrs)
- Since:
- Available in iOS 7.0 and later.
-
draw
public void draw(CGRect rect, NSAttributedStringAttributes attrs)
- Since:
- Available in iOS 7.0 and later.
-
draw
public void draw(CGRect rect, CMTextMarkupAttributes attrs)
- Since:
- Available in iOS 7.0 and later.
-
draw
public void draw(CGRect rect, CTAttributedStringAttributes attrs)
- Since:
- Available in iOS 7.0 and later.
-
draw
public static void draw(java.lang.String str, CGRect rect, NSDictionary<NSString,NSObject> attrs)
- Since:
- Available in iOS 7.0 and later.
-
draw
public static void draw(java.lang.String str, CGRect rect, NSAttributedStringAttributes attrs)
- Since:
- Available in iOS 7.0 and later.
-
draw
public static void draw(java.lang.String str, CGRect rect, CMTextMarkupAttributes attrs)
- Since:
- Available in iOS 7.0 and later.
-
draw
public static void draw(java.lang.String str, CGRect rect, CTAttributedStringAttributes attrs)
- Since:
- Available in iOS 7.0 and later.
-
draw
public void draw(CGRect rect, NSStringDrawingOptions options, NSDictionary<NSString,NSObject> attributes, NSStringDrawingContext context)
- Since:
- Available in iOS 7.0 and later.
-
draw
public void draw(CGRect rect, NSStringDrawingOptions options, NSAttributedStringAttributes attributes, NSStringDrawingContext context)
- Since:
- Available in iOS 7.0 and later.
-
draw
public void draw(CGRect rect, NSStringDrawingOptions options, CMTextMarkupAttributes attributes, NSStringDrawingContext context)
- Since:
- Available in iOS 7.0 and later.
-
draw
public void draw(CGRect rect, NSStringDrawingOptions options, CTAttributedStringAttributes attributes, NSStringDrawingContext context)
- Since:
- Available in iOS 7.0 and later.
-
draw
public static void draw(java.lang.String str, CGRect rect, NSStringDrawingOptions options, NSDictionary<NSString,NSObject> attributes, NSStringDrawingContext context)
- Since:
- Available in iOS 7.0 and later.
-
draw
public static void draw(java.lang.String str, CGRect rect, NSStringDrawingOptions options, NSAttributedStringAttributes attributes, NSStringDrawingContext context)
- Since:
- Available in iOS 7.0 and later.
-
draw
public static void draw(java.lang.String str, CGRect rect, NSStringDrawingOptions options, CMTextMarkupAttributes attributes, NSStringDrawingContext context)
- Since:
- Available in iOS 7.0 and later.
-
draw
public static void draw(java.lang.String str, CGRect rect, NSStringDrawingOptions options, CTAttributedStringAttributes attributes, NSStringDrawingContext context)
- Since:
- Available in iOS 7.0 and later.
-
getBoundingRect
public CGRect getBoundingRect(CGSize size, NSStringDrawingOptions options, NSDictionary<NSString,NSObject> attributes, NSStringDrawingContext context)
- Since:
- Available in iOS 7.0 and later.
-
getBoundingRect
public CGRect getBoundingRect(CGSize size, NSStringDrawingOptions options, NSAttributedStringAttributes attributes, NSStringDrawingContext context)
- Since:
- Available in iOS 7.0 and later.
-
getBoundingRect
public CGRect getBoundingRect(CGSize size, NSStringDrawingOptions options, CMTextMarkupAttributes attributes, NSStringDrawingContext context)
- Since:
- Available in iOS 7.0 and later.
-
getBoundingRect
public CGRect getBoundingRect(CGSize size, NSStringDrawingOptions options, CTAttributedStringAttributes attributes, NSStringDrawingContext context)
- Since:
- Available in iOS 7.0 and later.
-
getBoundingRect
public static CGRect getBoundingRect(java.lang.String str, CGSize size, NSStringDrawingOptions options, NSDictionary<NSString,NSObject> attributes, NSStringDrawingContext context)
- Since:
- Available in iOS 7.0 and later.
-
getBoundingRect
public static CGRect getBoundingRect(java.lang.String str, CGSize size, NSStringDrawingOptions options, NSAttributedStringAttributes attributes, NSStringDrawingContext context)
- Since:
- Available in iOS 7.0 and later.
-
getBoundingRect
public static CGRect getBoundingRect(java.lang.String str, CGSize size, NSStringDrawingOptions options, CMTextMarkupAttributes attributes, NSStringDrawingContext context)
- Since:
- Available in iOS 7.0 and later.
-
getBoundingRect
public static CGRect getBoundingRect(java.lang.String str, CGSize size, NSStringDrawingOptions options, CTAttributedStringAttributes attributes, NSStringDrawingContext context)
- Since:
- Available in iOS 7.0 and later.
-
readFile
public static java.lang.String readFile(java.io.File path, NSStringEncoding enc) throws NSErrorException
- Throws:
NSErrorException
-
hasPrefix
protected static java.lang.String hasPrefix(long handle, org.robovm.objc.Selector sel, java.lang.String prefix)
-
hasPrefix
public static java.lang.String hasPrefix(java.lang.String str, java.lang.String prefix)
-
hasSuffix
protected static java.lang.String hasSuffix(long handle, org.robovm.objc.Selector sel, java.lang.String suffix)
-
hasSuffix
public static java.lang.String hasSuffix(java.lang.String str, java.lang.String suffix)
-
toData
protected static NSData toData(long handle, org.robovm.objc.Selector sel, NSStringEncoding encoding, boolean lossy)
-
toData
public static NSData toData(java.lang.String str, NSStringEncoding encoding, boolean lossy)
-
toData
protected static NSData toData(long handle, org.robovm.objc.Selector sel, NSStringEncoding encoding)
-
toData
public static NSData toData(java.lang.String str, NSStringEncoding encoding)
-
appendPathComponent
protected static java.lang.String appendPathComponent(long handle, org.robovm.objc.Selector sel, java.lang.String component)
-
appendPathComponent
public static java.lang.String appendPathComponent(java.lang.String str, java.lang.String component)
-
appendPathExtension
protected static java.lang.String appendPathExtension(long handle, org.robovm.objc.Selector sel, java.lang.String extension)
-
appendPathExtension
public static java.lang.String appendPathExtension(java.lang.String str, java.lang.String extension)
-
addPercentEncoding
protected static java.lang.String addPercentEncoding(long handle, org.robovm.objc.Selector sel, NSCharacterSet allowedCharacters)
-
addPercentEncoding
public static java.lang.String addPercentEncoding(java.lang.String str, NSCharacterSet allowedCharacters)
-
addPercentEscapes
protected static java.lang.String addPercentEscapes(long handle, org.robovm.objc.Selector sel, NSStringEncoding encoding)
-
addPercentEscapes
public static java.lang.String addPercentEscapes(java.lang.String str, NSStringEncoding encoding)
-
replacePercentEscapes
protected static java.lang.String replacePercentEscapes(long handle, org.robovm.objc.Selector sel, NSStringEncoding encoding)
-
replacePercentEscapes
public static java.lang.String replacePercentEscapes(java.lang.String str, NSStringEncoding encoding)
-
rangeOf
protected static NSRange rangeOf(long handle, org.robovm.objc.Selector sel, java.lang.String string)
-
rangeOf
public static NSRange rangeOf(java.lang.String str, java.lang.String search)
-
getCharactersAt
protected short getCharactersAt(long index)
-
getCharacters
protected void getCharacters(long buffer, NSRange range)
-
hasPrefix
public boolean hasPrefix(java.lang.String str)
-
hasSuffix
public boolean hasSuffix(java.lang.String str)
-
toData
public NSData toData(NSStringEncoding encoding, boolean lossy)
-
toData
public NSData toData(NSStringEncoding encoding)
-
writeURL
public boolean writeURL(NSURL url, boolean atomically, NSStringEncoding enc) throws NSErrorException
- Throws:
NSErrorException
-
writeFile
public boolean writeFile(java.lang.String path, boolean atomically, NSStringEncoding enc) throws NSErrorException
- Throws:
NSErrorException
-
init
protected long init(long characters, long length)
-
create
protected static long create(long characters, long length)
-
readURL
public static java.lang.String readURL(NSURL url, NSStringEncoding enc) throws NSErrorException
- Throws:
NSErrorException
-
readFile
public static java.lang.String readFile(java.lang.String path, NSStringEncoding enc) throws NSErrorException
- Throws:
NSErrorException
-
appendPathComponent
public java.lang.String appendPathComponent(java.lang.String str)
-
appendPathExtension
public java.lang.String appendPathExtension(java.lang.String str)
-
addPercentEncoding
public java.lang.String addPercentEncoding(NSCharacterSet allowedCharacters)
- Since:
- Available in iOS 7.0 and later.
-
addPercentEscapes
@Deprecated public java.lang.String addPercentEscapes(NSStringEncoding enc)
Deprecated.Deprecated in iOS 9.0.- Since:
- Available in iOS 2.0 and later.
-
replacePercentEscapes
@Deprecated public java.lang.String replacePercentEscapes(NSStringEncoding enc)
Deprecated.Deprecated in iOS 9.0.- Since:
- Available in iOS 2.0 and later.
-
-