org.rococoa.cocoa.foundation.categories
Interface NSStringDeprecated

All Known Implementing Classes:
NSConstantString, NSMutableString, NSSimpleCString, NSString

public interface NSStringDeprecated

This file was autogenerated by JNAerator,
a tool written by Olivier Chafik that uses a few opensource projects..
For help, please visit NativeLibs4Java, Rococoa, or JNA.


Nested Class Summary
static interface NSStringDeprecated._static_
           
 
Method Summary
 ByteByReference cString()
          The methods in this category are deprecated and will be removed from this header file in the near future.
 int cStringLength()
           
 void getCString_maxLength(ByteBuffer bytes, int maxLength)
           
 void getCString_maxLength(ByteByReference bytes, int maxLength)
          Deprecated. use the safer method getCString_maxLength(java.nio.ByteBuffer, int) instead
 void getCString(ByteBuffer bytes)
           
 void getCString(ByteByReference bytes)
          Deprecated. use the safer method getCString(java.nio.ByteBuffer) instead
 NSString initWithContentsOfFile(NSString path)
           
 NSString initWithContentsOfURL(NSURL url)
           
 NSString initWithCString_length(ByteByReference bytes, int length)
          Deprecated. use the safer method initWithCString_length(java.lang.String, int) instead
 NSString initWithCString_length(String bytes, int length)
           
 NSString initWithCString(ByteByReference bytes)
          Deprecated. use the safer method initWithCString(java.lang.String) instead
 NSString initWithCString(String bytes)
           
 NSString initWithCStringNoCopy_length_freeWhenDone(ByteBuffer bytes, int length, boolean freeBuffer)
           
 NSString initWithCStringNoCopy_length_freeWhenDone(ByteByReference bytes, int length, boolean freeBuffer)
          Deprecated. use the safer method initWithCStringNoCopy_length_freeWhenDone(java.nio.ByteBuffer, int, boolean) instead
 ByteByReference lossyCString()
           
 boolean writeToFile_atomically(NSString path, boolean useAuxiliaryFile)
           
 boolean writeToURL_atomically(NSURL url, boolean atomically)
           
 

Method Detail

cString

ByteByReference cString()
The methods in this category are deprecated and will be removed from this header file in the near future. These methods use [NSString defaultCStringEncoding] as the encoding to convert to, which means the results depend on the user's language and potentially other settings. This might be appropriate in some cases, but often these methods are misused, resulting in issues when running in languages other then English. UTF8String in general is a much better choice when converting arbitrary NSStrings into 8-bit representations. Additional potential replacement methods are being introduced in NSString as appropriate.
Original signature : -(const char*)cString


lossyCString

ByteByReference lossyCString()

cStringLength

int cStringLength()

getCString

@Deprecated
void getCString(ByteByReference bytes)
Deprecated. use the safer method getCString(java.nio.ByteBuffer) instead

Original signature : -(void)getCString:(char*)


getCString

void getCString(ByteBuffer bytes)

getCString_maxLength

@Deprecated
void getCString_maxLength(ByteByReference bytes,
                                     int maxLength)
Deprecated. use the safer method getCString_maxLength(java.nio.ByteBuffer, int) instead

Original signature : -(void)getCString:(char*) maxLength:(NSUInteger)


getCString_maxLength

void getCString_maxLength(ByteBuffer bytes,
                          int maxLength)

writeToFile_atomically

boolean writeToFile_atomically(NSString path,
                               boolean useAuxiliaryFile)

writeToURL_atomically

boolean writeToURL_atomically(NSURL url,
                              boolean atomically)

initWithContentsOfFile

NSString initWithContentsOfFile(NSString path)

initWithContentsOfURL

NSString initWithContentsOfURL(NSURL url)

initWithCStringNoCopy_length_freeWhenDone

@Deprecated
NSString initWithCStringNoCopy_length_freeWhenDone(ByteByReference bytes,
                                                              int length,
                                                              boolean freeBuffer)
Deprecated. use the safer method initWithCStringNoCopy_length_freeWhenDone(java.nio.ByteBuffer, int, boolean) instead

Original signature : -(id)initWithCStringNoCopy:(char*) length:(NSUInteger) freeWhenDone:(BOOL)


initWithCStringNoCopy_length_freeWhenDone

NSString initWithCStringNoCopy_length_freeWhenDone(ByteBuffer bytes,
                                                   int length,
                                                   boolean freeBuffer)

initWithCString_length

@Deprecated
NSString initWithCString_length(ByteByReference bytes,
                                           int length)
Deprecated. use the safer method initWithCString_length(java.lang.String, int) instead

Original signature : -(id)initWithCString:(const char*) length:(NSUInteger)


initWithCString_length

NSString initWithCString_length(String bytes,
                                int length)

initWithCString

@Deprecated
NSString initWithCString(ByteByReference bytes)
Deprecated. use the safer method initWithCString(java.lang.String) instead

Original signature : -(id)initWithCString:(const char*)


initWithCString

NSString initWithCString(String bytes)