1 /*******************************************************************************
2  * Copyright (c) 2000, 2012 IBM Corporation and others.
3  *
4  * This program and the accompanying materials
5  * are made available under the terms of the Eclipse Public License 2.0
6  * which accompanies this distribution, and is available at
7  * https://www.eclipse.org/legal/epl-2.0/
8  *
9  * SPDX-License-Identifier: EPL-2.0
10  *
11  * Contributors:
12  *    IBM Corporation - initial API and implementation
13  *******************************************************************************/
14 package org.eclipse.swt.internal.cocoa;
15 
16 public class NSKeyedUnarchiver extends NSCoder {
17 
NSKeyedUnarchiver()18 public NSKeyedUnarchiver() {
19 	super();
20 }
21 
NSKeyedUnarchiver(long id)22 public NSKeyedUnarchiver(long id) {
23 	super(id);
24 }
25 
NSKeyedUnarchiver(id id)26 public NSKeyedUnarchiver(id id) {
27 	super(id);
28 }
29 
unarchiveObjectWithData(NSData data)30 public static id unarchiveObjectWithData(NSData data) {
31 	long result = OS.objc_msgSend(OS.class_NSKeyedUnarchiver, OS.sel_unarchiveObjectWithData_, data != null ? data.id : 0);
32 	return result != 0 ? new id(result) : null;
33 }
34 
35 }
36