org.rococoa.cocoa.foundation.categories
Interface NSStringDeprecated

All Superinterfaces:
ObjCObject

public interface NSStringDeprecated
extends ObjCObject

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
 String cString()
          The following methods are deprecated and will be removed from this header file in the near future.
 NSUInteger cStringLength()
          Original signature : -(NSUInteger)cStringLength
from NSStringDeprecated native declaration : NSString.h:370
 void getCharacters(CharBuffer buffer)
          This method is unsafe because it could potentially cause buffer overruns.
 void getCharacters(CharByReference buffer)
          Deprecated. use the safer methods getCharacters(java.nio.CharBuffer) and getCharacters(com.ochafik.lang.jnaerator.runtime.CharByReference) instead
 void getCString_maxLength(ByteBuffer bytes, NSUInteger maxLength)
          Original signature : -(void)getCString:(char*) maxLength:(NSUInteger)
from NSStringDeprecated native declaration : NSString.h:372
 void getCString_maxLength(Pointer bytes, NSUInteger maxLength)
          Deprecated. use the safer methods getCString_maxLength(java.nio.ByteBuffer, org.rococoa.cocoa.foundation.NSUInteger) and getCString_maxLength(com.sun.jna.Pointer, org.rococoa.cocoa.foundation.NSUInteger) instead
 void getCString(ByteBuffer bytes)
          Original signature : -(void)getCString:(char*)
from NSStringDeprecated native declaration : NSString.h:371
 void getCString(Pointer bytes)
          Deprecated. use the safer methods getCString(java.nio.ByteBuffer) and getCString(com.sun.jna.Pointer) instead
 NSString initWithContentsOfFile(NSString path)
          Original signature : -(id)initWithContentsOfFile:(NSString*)
from NSStringDeprecated native declaration : NSString.h:378
 NSString initWithContentsOfURL(NSURL url)
          Original signature : -(id)initWithContentsOfURL:(NSURL*)
from NSStringDeprecated native declaration : NSString.h:379
 NSString initWithCString_length(Pointer bytes, NSUInteger length)
          Deprecated. use the safer methods initWithCString_length(java.lang.String, org.rococoa.cocoa.foundation.NSUInteger) and initWithCString_length(com.sun.jna.Pointer, org.rococoa.cocoa.foundation.NSUInteger) instead
 NSString initWithCString_length(String bytes, NSUInteger length)
          Original signature : -(id)initWithCString:(const char*) length:(NSUInteger)
from NSStringDeprecated native declaration : NSString.h:384
 NSString initWithCString(Pointer bytes)
          Deprecated. use the safer methods initWithCString(java.lang.String) and initWithCString(com.sun.jna.Pointer) instead
 NSString initWithCString(String bytes)
          Original signature : -(id)initWithCString:(const char*)
from NSStringDeprecated native declaration : NSString.h:385
 NSString initWithCStringNoCopy_length_freeWhenDone(ByteBuffer bytes, NSUInteger length, boolean freeBuffer)
          Original signature : -(id)initWithCStringNoCopy:(char*) length:(NSUInteger) freeWhenDone:(BOOL)
from NSStringDeprecated native declaration : NSString.h:383
 NSString initWithCStringNoCopy_length_freeWhenDone(Pointer bytes, NSUInteger length, boolean freeBuffer)
          Deprecated. use the safer methods initWithCStringNoCopy_length_freeWhenDone(java.nio.ByteBuffer, org.rococoa.cocoa.foundation.NSUInteger, boolean) and initWithCStringNoCopy_length_freeWhenDone(com.sun.jna.Pointer, org.rococoa.cocoa.foundation.NSUInteger, boolean) instead
 String lossyCString()
          Original signature : -(const char*)lossyCString
from NSStringDeprecated native declaration : NSString.h:369
 boolean writeToFile_atomically(NSString path, boolean useAuxiliaryFile)
          Original signature : -(BOOL)writeToFile:(NSString*) atomically:(BOOL)
from NSStringDeprecated native declaration : NSString.h:375
 boolean writeToURL_atomically(NSURL url, boolean atomically)
          Original signature : -(BOOL)writeToURL:(NSURL*) atomically:(BOOL)
from NSStringDeprecated native declaration : NSString.h:376
 
Methods inherited from interface org.rococoa.ObjCObject
id
 

Method Detail

cString

String cString()
The following methods 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
from NSStringDeprecated native declaration : NSString.h:368


lossyCString

String lossyCString()
Original signature : -(const char*)lossyCString
from NSStringDeprecated native declaration : NSString.h:369


cStringLength

NSUInteger cStringLength()
Original signature : -(NSUInteger)cStringLength
from NSStringDeprecated native declaration : NSString.h:370


getCString

@Deprecated
void getCString(Pointer bytes)
Deprecated. use the safer methods getCString(java.nio.ByteBuffer) and getCString(com.sun.jna.Pointer) instead

Original signature : -(void)getCString:(char*)
from NSStringDeprecated native declaration : NSString.h:371


getCString

void getCString(ByteBuffer bytes)
Original signature : -(void)getCString:(char*)
from NSStringDeprecated native declaration : NSString.h:371


getCString_maxLength

@Deprecated
void getCString_maxLength(Pointer bytes,
                                     NSUInteger maxLength)
Deprecated. use the safer methods getCString_maxLength(java.nio.ByteBuffer, org.rococoa.cocoa.foundation.NSUInteger) and getCString_maxLength(com.sun.jna.Pointer, org.rococoa.cocoa.foundation.NSUInteger) instead

Original signature : -(void)getCString:(char*) maxLength:(NSUInteger)
from NSStringDeprecated native declaration : NSString.h:372


getCString_maxLength

void getCString_maxLength(ByteBuffer bytes,
                          NSUInteger maxLength)
Original signature : -(void)getCString:(char*) maxLength:(NSUInteger)
from NSStringDeprecated native declaration : NSString.h:372


writeToFile_atomically

boolean writeToFile_atomically(NSString path,
                               boolean useAuxiliaryFile)
Original signature : -(BOOL)writeToFile:(NSString*) atomically:(BOOL)
from NSStringDeprecated native declaration : NSString.h:375


writeToURL_atomically

boolean writeToURL_atomically(NSURL url,
                              boolean atomically)
Original signature : -(BOOL)writeToURL:(NSURL*) atomically:(BOOL)
from NSStringDeprecated native declaration : NSString.h:376


initWithContentsOfFile

NSString initWithContentsOfFile(NSString path)
Original signature : -(id)initWithContentsOfFile:(NSString*)
from NSStringDeprecated native declaration : NSString.h:378


initWithContentsOfURL

NSString initWithContentsOfURL(NSURL url)
Original signature : -(id)initWithContentsOfURL:(NSURL*)
from NSStringDeprecated native declaration : NSString.h:379


initWithCStringNoCopy_length_freeWhenDone

@Deprecated
NSString initWithCStringNoCopy_length_freeWhenDone(Pointer bytes,
                                                              NSUInteger length,
                                                              boolean freeBuffer)
Deprecated. use the safer methods initWithCStringNoCopy_length_freeWhenDone(java.nio.ByteBuffer, org.rococoa.cocoa.foundation.NSUInteger, boolean) and initWithCStringNoCopy_length_freeWhenDone(com.sun.jna.Pointer, org.rococoa.cocoa.foundation.NSUInteger, boolean) instead

Original signature : -(id)initWithCStringNoCopy:(char*) length:(NSUInteger) freeWhenDone:(BOOL)
from NSStringDeprecated native declaration : NSString.h:383


initWithCStringNoCopy_length_freeWhenDone

NSString initWithCStringNoCopy_length_freeWhenDone(ByteBuffer bytes,
                                                   NSUInteger length,
                                                   boolean freeBuffer)
Original signature : -(id)initWithCStringNoCopy:(char*) length:(NSUInteger) freeWhenDone:(BOOL)
from NSStringDeprecated native declaration : NSString.h:383


initWithCString_length

@Deprecated
NSString initWithCString_length(Pointer bytes,
                                           NSUInteger length)
Deprecated. use the safer methods initWithCString_length(java.lang.String, org.rococoa.cocoa.foundation.NSUInteger) and initWithCString_length(com.sun.jna.Pointer, org.rococoa.cocoa.foundation.NSUInteger) instead

Original signature : -(id)initWithCString:(const char*) length:(NSUInteger)
from NSStringDeprecated native declaration : NSString.h:384


initWithCString_length

NSString initWithCString_length(String bytes,
                                NSUInteger length)
Original signature : -(id)initWithCString:(const char*) length:(NSUInteger)
from NSStringDeprecated native declaration : NSString.h:384


initWithCString

@Deprecated
NSString initWithCString(Pointer bytes)
Deprecated. use the safer methods initWithCString(java.lang.String) and initWithCString(com.sun.jna.Pointer) instead

Original signature : -(id)initWithCString:(const char*)
from NSStringDeprecated native declaration : NSString.h:385


initWithCString

NSString initWithCString(String bytes)
Original signature : -(id)initWithCString:(const char*)
from NSStringDeprecated native declaration : NSString.h:385


getCharacters

@Deprecated
void getCharacters(CharByReference buffer)
Deprecated. use the safer methods getCharacters(java.nio.CharBuffer) and getCharacters(com.ochafik.lang.jnaerator.runtime.CharByReference) instead

This method is unsafe because it could potentially cause buffer overruns. You should use -getCharacters:range: instead.
Original signature : -(void)getCharacters:(unichar*)
from NSStringDeprecated native declaration : NSString.h:391


getCharacters

void getCharacters(CharBuffer buffer)
This method is unsafe because it could potentially cause buffer overruns. You should use -getCharacters:range: instead.
Original signature : -(void)getCharacters:(unichar*)
from NSStringDeprecated native declaration : NSString.h:391



Copyright © 2009. All Rights Reserved.