|
Urbi SDK Remote for Java
2.7.3
|
00001 /* ---------------------------------------------------------------------------- 00002 * This file was automatically generated by SWIG (http://www.swig.org). 00003 * Version 2.0.4 00004 * 00005 * Do not make changes to this file unless you know what you are doing--modify 00006 * the SWIG interface file instead. 00007 * ----------------------------------------------------------------------------- */ 00008 00009 package urbi; 00010 /// Binary data of known or unknown type. 00011 /// 00012 /// Handles its memory: the data field will be freed when the 00013 /// destructor is called. 00014 00015 public class UBinary { 00016 private long swigCPtr; 00017 protected boolean swigCMemOwn; 00018 00019 public UBinary(long cPtr, boolean cMemoryOwn) { 00020 swigCMemOwn = cMemoryOwn; 00021 swigCPtr = cPtr; 00022 } 00023 00024 public static long getCPtr(UBinary obj) { 00025 return (obj == null) ? 0 : obj.swigCPtr; 00026 } 00027 00028 protected void finalize() { 00029 delete(); 00030 } 00031 00032 public synchronized void delete() { 00033 if (swigCPtr != 0) { 00034 if (swigCMemOwn) { 00035 swigCMemOwn = false; 00036 urbiJNI.delete_UBinary(swigCPtr); 00037 } 00038 swigCPtr = 0; 00039 } 00040 } 00041 00042 /// Deep copy constructor. 00043 public UBinary() { 00044 this(urbiJNI.new_UBinary__SWIG_0(), true); 00045 } 00046 00047 /// Deep copy constructor. 00048 public UBinary(UBinary b, boolean copy, boolean temp) { 00049 this(urbiJNI.new_UBinary__SWIG_1(UBinary.getCPtr(b), b, copy, temp), true); 00050 } 00051 00052 /// Deep copy constructor. 00053 public UBinary(UBinary b, boolean copy) { 00054 this(urbiJNI.new_UBinary__SWIG_2(UBinary.getCPtr(b), b, copy), true); 00055 } 00056 00057 /// Deep copy constructor. 00058 public UBinary(UBinary b) { 00059 this(urbiJNI.new_UBinary__SWIG_3(UBinary.getCPtr(b), b), true); 00060 } 00061 00062 /// Deep copy constructor. 00063 public UBinary(UImage arg0, boolean copy) { 00064 this(urbiJNI.new_UBinary__SWIG_4(UImage.getCPtr(arg0), arg0, copy), true); 00065 } 00066 00067 /// Deep copy constructor. 00068 public UBinary(UImage arg0) { 00069 this(urbiJNI.new_UBinary__SWIG_5(UImage.getCPtr(arg0), arg0), true); 00070 } 00071 00072 /// Deep copy constructor. 00073 public UBinary(USound arg0, boolean copy) { 00074 this(urbiJNI.new_UBinary__SWIG_6(USound.getCPtr(arg0), arg0, copy), true); 00075 } 00076 00077 /// Deep copy constructor. 00078 public UBinary(USound arg0) { 00079 this(urbiJNI.new_UBinary__SWIG_7(USound.getCPtr(arg0), arg0), true); 00080 } 00081 00082 /// Deep copy. 00083 public UBinary setValue(UBinary b) { 00084 return new UBinary(urbiJNI.UBinary_setValue(swigCPtr, this, UBinary.getCPtr(b), b), false); 00085 } 00086 00087 /// Store the result of getMessage() in member \a message. 00088 public void buildMessage() { 00089 urbiJNI.UBinary_buildMessage(swigCPtr, this); 00090 } 00091 00092 /// Get header. 00093 public String getMessage() { 00094 return urbiJNI.UBinary_getMessage(swigCPtr, this); 00095 } 00096 00097 /// Clear all the buffers that were allocated by the system. 00098 public void clear() { 00099 urbiJNI.UBinary_clear(swigCPtr, this); 00100 } 00101 00102 public void setType(UBinaryType value) { 00103 urbiJNI.UBinary_type_set(swigCPtr, this, value.swigValue()); 00104 } 00105 00106 public UBinaryType getType() { 00107 return UBinaryType.swigToEnum(urbiJNI.UBinary_type_get(swigCPtr, this)); 00108 } 00109 00110 public void setAllocated_(boolean value) { 00111 urbiJNI.UBinary_allocated__set(swigCPtr, this, value); 00112 } 00113 00114 public boolean getAllocated_() { 00115 return urbiJNI.UBinary_allocated__get(swigCPtr, this); 00116 } 00117 00118 public void setTemporary_(boolean value) { 00119 urbiJNI.UBinary_temporary__set(swigCPtr, this, value); 00120 } 00121 00122 public boolean getTemporary_() { 00123 return urbiJNI.UBinary_temporary__get(swigCPtr, this); 00124 } 00125 00126 public UImage uimageValue() { 00127 return new UImage(urbiJNI.UBinary_uimageValue(swigCPtr, this), true); 00128 } 00129 00130 public USound usoundValue() { 00131 return new USound(urbiJNI.UBinary_usoundValue(swigCPtr, this), true); 00132 } 00133 00134 public long getSize() { 00135 return urbiJNI.UBinary_getSize(swigCPtr, this); 00136 } 00137 00138 public String getExtraHeader() { 00139 return urbiJNI.UBinary_getExtraHeader(swigCPtr, this); 00140 } 00141 00142 public void setExtraHeader(String msg) { 00143 urbiJNI.UBinary_setExtraHeader(swigCPtr, this, msg); 00144 } 00145 00146 public void setData(byte[] value) { 00147 urbiJNI.UBinary_data_set(swigCPtr, this, value); 00148 } 00149 00150 public byte[] getData() { 00151 return urbiJNI.UBinary_data_get(swigCPtr, this); 00152 } 00153 00154 }