|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jinterop.dcom.core.JIString
public final class JIString
Class representing a COM string. The Wide Char (LPWSTR) and the BSTR are
both encoded by the server in "UTF-16LE". This encoding will be preserved by the library for all to
and fro operations.
| Field Summary | |
|---|---|
JIVariant |
Variant
Represents JIVariant for this object, it is valid only if this object is a BSTR
(JIFlags.FLAG_REPRESENTATION_STRING_BSTR) type. |
JIVariant |
VariantByRef
Represents JIVariant(byRef = true) for this object, it is valid only if this object is a BSTR
(JIFlags.FLAG_REPRESENTATION_STRING_BSTR) type. |
| Constructor Summary | |
|---|---|
JIString(int type)
Creates an object of the specified type. |
|
JIString(java.lang.String str)
Creates a object of the BSTR type. |
|
JIString(java.lang.String str,
int type)
Creates a string object of a given type. |
|
| Method Summary | |
|---|---|
java.lang.String |
getString()
String encapsulated by this object. |
int |
getType()
Type representing this object. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public final JIVariant Variant
JIVariant for this object, it is valid only if this object is a BSTR
(JIFlags.FLAG_REPRESENTATION_STRING_BSTR) type.
public final JIVariant VariantByRef
JIVariant(byRef = true) for this object, it is valid only if this object is a BSTR
(JIFlags.FLAG_REPRESENTATION_STRING_BSTR) type.
| Constructor Detail |
|---|
public JIString(int type)
type - JIFlags string flags
java.lang.IllegalArgumentException - if type is not a string flag.JIFlags.FLAG_REPRESENTATION_STRING_BSTR,
JIFlags.FLAG_REPRESENTATION_STRING_LPCTSTR,
JIFlags.FLAG_REPRESENTATION_STRING_LPWSTR
public JIString(java.lang.String str,
int type)
type.
str - value encapsulated by this object.type - JIFlags string flags
java.lang.IllegalArgumentException - if type is not a string flag.JIFlags.FLAG_REPRESENTATION_STRING_BSTR,
JIFlags.FLAG_REPRESENTATION_STRING_LPCTSTR,
JIFlags.FLAG_REPRESENTATION_STRING_LPWSTRpublic JIString(java.lang.String str)
BSTR type.
str - value encapsulated by this object.| Method Detail |
|---|
public java.lang.String getString()
LPWSTR and BSTR strings is "UTF-16LE".
public int getType()
JIFlags.FLAG_REPRESENTATION_STRING_BSTR,
JIFlags.FLAG_REPRESENTATION_STRING_LPCTSTR,
JIFlags.FLAG_REPRESENTATION_STRING_LPWSTRpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||