org.rococoa.cocoa.foundation
Class NSPropertyListSerialization

java.lang.Object
  extended by org.rococoa.cocoa.foundation.NSObject
      extended by org.rococoa.cocoa.foundation.NSPropertyListSerialization
All Implemented Interfaces:
NSObject, ObjCObject

public abstract class NSPropertyListSerialization
extends NSObject
implements 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 class NSPropertyListSerialization._class_
           
 
Nested classes/interfaces inherited from interface org.rococoa.cocoa.foundation.protocols.NSObject
NSObject._static_
 
Constructor Summary
NSPropertyListSerialization()
           
 
Method Summary
static NSPropertyListSerialization alloc()
           
static NSData dataFromPropertyList_format_errorDescription(ObjCObject plist, int format, PointerByReference errorString)
          This method is obsolete and will be deprecated soon.
static NSData dataWithPropertyList_format_options_error(ObjCObject plist, int format, NSUInteger opt, PointerByReference error)
          Create an NSData from a property list.
static NSPropertyListSerialization._class_ getNSClass()
           
static NSPropertyListSerialization new_()
           
static boolean propertyList_isValidForFormat(ObjCObject plist, int format)
          Verify that a specified property list is valid for a given format.
static NSObject propertyListFromData_mutabilityOption_format_errorDescription(NSData data, int opt, IntBuffer format, PointerByReference errorString)
          This method is obsolete and will be deprecated soon.
static NSObject propertyListFromData_mutabilityOption_format_errorDescription(NSData data, int opt, IntByReference format, PointerByReference errorString)
          Deprecated. use the safer methods propertyListFromData_mutabilityOption_format_errorDescription(org.rococoa.cocoa.foundation.NSData, int, java.nio.IntBuffer, com.sun.jna.ptr.PointerByReference) and propertyListFromData_mutabilityOption_format_errorDescription(org.rococoa.cocoa.foundation.NSData, int, com.sun.jna.ptr.IntByReference, com.sun.jna.ptr.PointerByReference) instead
static NSObject propertyListWithData_options_format_error(NSData data, NSUInteger opt, IntBuffer format, PointerByReference error)
          Create a property list from an NSData.
static NSObject propertyListWithData_options_format_error(NSData data, NSUInteger opt, IntByReference format, PointerByReference error)
          Deprecated. use the safer methods propertyListWithData_options_format_error(org.rococoa.cocoa.foundation.NSData, org.rococoa.cocoa.foundation.NSUInteger, java.nio.IntBuffer, com.sun.jna.ptr.PointerByReference) and propertyListWithData_options_format_error(org.rococoa.cocoa.foundation.NSData, org.rococoa.cocoa.foundation.NSUInteger, com.sun.jna.ptr.IntByReference, com.sun.jna.ptr.PointerByReference) instead
static NSObject propertyListWithStream_options_format_error(NSInputStream stream, NSUInteger opt, IntBuffer format, PointerByReference error)
          Create a property list by reading from an NSInputStream.
static NSObject propertyListWithStream_options_format_error(NSInputStream stream, NSUInteger opt, IntByReference format, PointerByReference error)
          Deprecated. use the safer methods propertyListWithStream_options_format_error(org.rococoa.cocoa.foundation.NSInputStream, org.rococoa.cocoa.foundation.NSUInteger, java.nio.IntBuffer, com.sun.jna.ptr.PointerByReference) and propertyListWithStream_options_format_error(org.rococoa.cocoa.foundation.NSInputStream, org.rococoa.cocoa.foundation.NSUInteger, com.sun.jna.ptr.IntByReference, com.sun.jna.ptr.PointerByReference) instead
static NSInteger writePropertyList_toStream_format_options_error(ObjCObject plist, NSOutputStream stream, int format, NSUInteger opt, PointerByReference error)
          Write a property list to an output stream.
 
Methods inherited from class org.rococoa.cocoa.foundation.NSObject
as_NSObject_NSAccessibility, as_NSObject_NSAccessibilityAdditions, as_NSObject_NSApplicationScriptingDelegation, as_NSObject_NSArchiverCallback, as_NSObject_NSClassDescriptionPrimitives, as_NSObject_NSCoderMethods, as_NSObject_NSColorPanelResponderMethod, as_NSObject_NSComparisonMethods, as_NSObject_NSControlSubclassNotifications, as_NSObject_NSCopyLinkMoveHandler, as_NSObject_NSDelayedPerforming, as_NSObject_NSDeprecatedKeyValueCoding, as_NSObject_NSDeprecatedKeyValueObservingCustomization, as_NSObject_NSDeprecatedMethods, as_NSObject_NSDictionaryControllerKeyValuePair, as_NSObject_NSDistributedObjects, as_NSObject_NSDraggingDestination, as_NSObject_NSDraggingSource, as_NSObject_NSDraggingSourceDeprecated, as_NSObject_NSEditor, as_NSObject_NSEditorRegistration, as_NSObject_NSErrorRecoveryAttempting, as_NSObject_NSFileManagerFileOperationAdditions, as_NSObject_NSFontManagerDelegate, as_NSObject_NSFontManagerResponderMethod, as_NSObject_NSFontPanelValidationAdditions, as_NSObject_NSKeyValueBindingCreation, as_NSObject_NSKeyValueCoding, as_NSObject_NSKeyValueObserverNotification, as_NSObject_NSKeyValueObserverRegistration, as_NSObject_NSKeyValueObserving, as_NSObject_NSKeyValueObservingCustomization, as_NSObject_NSMenuValidation, as_NSObject_NSNibAwaking, as_NSObject_NSPasteboardOwner, as_NSObject_NSPlaceholders, as_NSObject_NSScriptClassDescription, as_NSObject_NSScripting, as_NSObject_NSScriptingComparisonMethods, as_NSObject_NSScriptKeyValueCoding, as_NSObject_NSScriptObjectSpecifiers, as_NSObject_NSThreadPerformAdditions, as_NSObject_NSURLClient, as_NSObject_NSURLConnectionDelegate, as_NSObject_NSURLDownloadDelegate, copy, create, dealloc, description, doesNotRecognizeSelector, finalize, forwardingTargetForSelector, forwardInvocation, init, isKindOfClass, isKindOfClass, methodForSelector, methodSignatureForSelector, mutableCopy, release, retain, retainCount
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.rococoa.ObjCObject
id
 
Methods inherited from interface org.rococoa.cocoa.foundation.protocols.NSObject
autorelease, class_, conformsToProtocol, hash, isEqual, isMemberOfClass, isProxy, performSelector_withObject_withObject, performSelector_withObject, performSelector, respondsToSelector, self, superclass, zone
 

Constructor Detail

NSPropertyListSerialization

public NSPropertyListSerialization()
Method Detail

propertyList_isValidForFormat

public static boolean propertyList_isValidForFormat(ObjCObject plist,
                                                    int format)
Verify that a specified property list is valid for a given format. Returns YES if the property list is valid.
Original signature : +(BOOL)propertyList:(id) isValidForFormat:(NSPropertyListFormat)
native declaration : NSPropertyList.h:36

Parameters:
format - @see org.rococoa.cocoa.foundation.FoundationLibrary#NSPropertyListFormat

dataWithPropertyList_format_options_error

public static NSData dataWithPropertyList_format_options_error(ObjCObject plist,
                                                               int format,
                                                               NSUInteger opt,
                                                               PointerByReference error)
Create an NSData from a property list. The format can be either NSPropertyListXMLFormat_v1_0 or NSPropertyListBinaryFormat_v1_0. The options parameter is currently unused and should be set to 0. If an error occurs the return value will be nil and the error parameter (if non-NULL) set to an autoreleased NSError describing the problem.
Original signature : +(NSData*)dataWithPropertyList:(id) format:(NSPropertyListFormat) options:(NSPropertyListWriteOptions) error:(NSError**)
native declaration : NSPropertyList.h:40

Parameters:
format - @see org.rococoa.cocoa.foundation.FoundationLibrary#NSPropertyListFormat

writePropertyList_toStream_format_options_error

public static NSInteger writePropertyList_toStream_format_options_error(ObjCObject plist,
                                                                        NSOutputStream stream,
                                                                        int format,
                                                                        NSUInteger opt,
                                                                        PointerByReference error)
Write a property list to an output stream. The stream should be opened and configured. The format can be either NSPropertyListXMLFormat_v1_0 or NSPropertyListBinaryFormat_v1_0. The options parameter is currently unused and should be set to 0. If an error occurs the return value will be 0 and the error parameter (if non-NULL) set to an autoreleased NSError describing the problem. In a successful case, the return value is the number of bytes written to the stream.
Original signature : +(NSInteger)writePropertyList:(id) toStream:(NSOutputStream*) format:(NSPropertyListFormat) options:(NSPropertyListWriteOptions) error:(NSError**)
native declaration : NSPropertyList.h:44

Parameters:
format - @see org.rococoa.cocoa.foundation.FoundationLibrary#NSPropertyListFormat

propertyListWithData_options_format_error

@Deprecated
public static NSObject propertyListWithData_options_format_error(NSData data,
                                                                            NSUInteger opt,
                                                                            IntByReference format,
                                                                            PointerByReference error)
Deprecated. use the safer methods propertyListWithData_options_format_error(org.rococoa.cocoa.foundation.NSData, org.rococoa.cocoa.foundation.NSUInteger, java.nio.IntBuffer, com.sun.jna.ptr.PointerByReference) and propertyListWithData_options_format_error(org.rococoa.cocoa.foundation.NSData, org.rococoa.cocoa.foundation.NSUInteger, com.sun.jna.ptr.IntByReference, com.sun.jna.ptr.PointerByReference) instead

Create a property list from an NSData. The options can be any of NSPropertyListMutabilityOptions. If the format parameter is non-NULL, it will be filled out with the format that the property list was stored in. If an error occurs the return value will be nil and the error parameter (if non-NULL) set to an autoreleased NSError describing the problem.
Original signature : +(id)propertyListWithData:(NSData*) options:(NSPropertyListReadOptions) format:(NSPropertyListFormat*) error:(NSError**)
native declaration : NSPropertyList.h:48

Parameters:
format - @see org.rococoa.cocoa.foundation.FoundationLibrary#NSPropertyListFormat

propertyListWithData_options_format_error

public static NSObject propertyListWithData_options_format_error(NSData data,
                                                                 NSUInteger opt,
                                                                 IntBuffer format,
                                                                 PointerByReference error)
Create a property list from an NSData. The options can be any of NSPropertyListMutabilityOptions. If the format parameter is non-NULL, it will be filled out with the format that the property list was stored in. If an error occurs the return value will be nil and the error parameter (if non-NULL) set to an autoreleased NSError describing the problem.
Original signature : +(id)propertyListWithData:(NSData*) options:(NSPropertyListReadOptions) format:(NSPropertyListFormat*) error:(NSError**)
native declaration : NSPropertyList.h:48


propertyListWithStream_options_format_error

@Deprecated
public static NSObject propertyListWithStream_options_format_error(NSInputStream stream,
                                                                              NSUInteger opt,
                                                                              IntByReference format,
                                                                              PointerByReference error)
Deprecated. use the safer methods propertyListWithStream_options_format_error(org.rococoa.cocoa.foundation.NSInputStream, org.rococoa.cocoa.foundation.NSUInteger, java.nio.IntBuffer, com.sun.jna.ptr.PointerByReference) and propertyListWithStream_options_format_error(org.rococoa.cocoa.foundation.NSInputStream, org.rococoa.cocoa.foundation.NSUInteger, com.sun.jna.ptr.IntByReference, com.sun.jna.ptr.PointerByReference) instead

Create a property list by reading from an NSInputStream. The options can be any of NSPropertyListMutabilityOptions. If the format parameter is non-NULL, it will be filled out with the format that the property list was stored in. If an error occurs the return value will be nil and the error parameter (if non-NULL) set to an autoreleased NSError describing the problem.
Original signature : +(id)propertyListWithStream:(NSInputStream*) options:(NSPropertyListReadOptions) format:(NSPropertyListFormat*) error:(NSError**)
native declaration : NSPropertyList.h:52

Parameters:
format - @see org.rococoa.cocoa.foundation.FoundationLibrary#NSPropertyListFormat

propertyListWithStream_options_format_error

public static NSObject propertyListWithStream_options_format_error(NSInputStream stream,
                                                                   NSUInteger opt,
                                                                   IntBuffer format,
                                                                   PointerByReference error)
Create a property list by reading from an NSInputStream. The options can be any of NSPropertyListMutabilityOptions. If the format parameter is non-NULL, it will be filled out with the format that the property list was stored in. If an error occurs the return value will be nil and the error parameter (if non-NULL) set to an autoreleased NSError describing the problem.
Original signature : +(id)propertyListWithStream:(NSInputStream*) options:(NSPropertyListReadOptions) format:(NSPropertyListFormat*) error:(NSError**)
native declaration : NSPropertyList.h:52


dataFromPropertyList_format_errorDescription

public static NSData dataFromPropertyList_format_errorDescription(ObjCObject plist,
                                                                  int format,
                                                                  PointerByReference errorString)
This method is obsolete and will be deprecated soon. Use dataWithPropertyList:format:options:error: instead.
Original signature : +(NSData*)dataFromPropertyList:(id) format:(NSPropertyListFormat) errorDescription:(NSString**)
native declaration : NSPropertyList.h:57

Parameters:
format - @see org.rococoa.cocoa.foundation.FoundationLibrary#NSPropertyListFormat

propertyListFromData_mutabilityOption_format_errorDescription

@Deprecated
public static NSObject propertyListFromData_mutabilityOption_format_errorDescription(NSData data,
                                                                                                int opt,
                                                                                                IntByReference format,
                                                                                                PointerByReference errorString)
Deprecated. use the safer methods propertyListFromData_mutabilityOption_format_errorDescription(org.rococoa.cocoa.foundation.NSData, int, java.nio.IntBuffer, com.sun.jna.ptr.PointerByReference) and propertyListFromData_mutabilityOption_format_errorDescription(org.rococoa.cocoa.foundation.NSData, int, com.sun.jna.ptr.IntByReference, com.sun.jna.ptr.PointerByReference) instead

This method is obsolete and will be deprecated soon. Use propertyListWithData:options:format:error: instead.
Original signature : +(id)propertyListFromData:(NSData*) mutabilityOption:(NSPropertyListMutabilityOptions) format:(NSPropertyListFormat*) errorDescription:(NSString**)
native declaration : NSPropertyList.h:61

Parameters:
opt - @see org.rococoa.cocoa.foundation.FoundationLibrary#NSPropertyListMutabilityOptions
format - @see org.rococoa.cocoa.foundation.FoundationLibrary#NSPropertyListFormat

propertyListFromData_mutabilityOption_format_errorDescription

public static NSObject propertyListFromData_mutabilityOption_format_errorDescription(NSData data,
                                                                                     int opt,
                                                                                     IntBuffer format,
                                                                                     PointerByReference errorString)
This method is obsolete and will be deprecated soon. Use propertyListWithData:options:format:error: instead.
Original signature : +(id)propertyListFromData:(NSData*) mutabilityOption:(NSPropertyListMutabilityOptions) format:(NSPropertyListFormat*) errorDescription:(NSString**)
native declaration : NSPropertyList.h:61

Parameters:
opt - @see org.rococoa.cocoa.foundation.FoundationLibrary#NSPropertyListMutabilityOptions

alloc

public static NSPropertyListSerialization alloc()

new_

public static NSPropertyListSerialization new_()

getNSClass

public static NSPropertyListSerialization._class_ getNSClass()


Copyright © 2009. All Rights Reserved.