public final class JIString extends Object implements Serializable
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.
| Modifier and Type | Field and Description |
|---|---|
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 and Description |
|---|
JIString(int type)
Creates an object of the specified type.
|
JIString(String str)
Creates a object of the
BSTR type. |
JIString(String str,
int type)
Creates a string object of a given
type. |
| Modifier and Type | Method and Description |
|---|---|
String |
getString()
String encapsulated by this object.
|
int |
getType()
Type representing this object.
|
String |
toString() |
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.public JIString(int type)
type - JIFlags string flagsIllegalArgumentException - if type is not a string flag.JIFlags.FLAG_REPRESENTATION_STRING_BSTR,
JIFlags.FLAG_REPRESENTATION_STRING_LPCTSTR,
JIFlags.FLAG_REPRESENTATION_STRING_LPWSTRpublic JIString(String str, int type)
type.str - value encapsulated by this object.type - JIFlags string flagsIllegalArgumentException - if type is not a string flag.JIFlags.FLAG_REPRESENTATION_STRING_BSTR,
JIFlags.FLAG_REPRESENTATION_STRING_LPCTSTR,
JIFlags.FLAG_REPRESENTATION_STRING_LPWSTRpublic JIString(String str)
BSTR type.str - value encapsulated by this object.public 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_LPWSTRCopyright © 2017 LSST. All rights reserved.