Instantiates com.rti.dds.infrastructure.com.rti.dds.util.Sequence
< com.rti.dds.infrastructure.char* >
More...
|
| WstringSeq () |
| Constructs an empty sequence of wide strings with an initial maximum of zero. More...
|
|
| WstringSeq (int initialMaximum) |
| Constructs an empty sequence of wide strings with the given initial maximum. More...
|
|
| WstringSeq (Collection strings) |
| Constructs a new sequence containing the given wide strings. More...
|
|
| StringSeq () |
| Constructs an empty sequence of strings with an initial maximum of zero. More...
|
|
| StringSeq (int initialMaximum) |
| Constructs an empty sequence of strings with the given initial maximum. More...
|
|
| StringSeq (Collection<?> strings) |
| Constructs a new sequence containing the given strings. More...
|
|
final Object | copy_from (Object src) |
|
|
static void | readWstringArray (String[] value, CdrObjectInput in, int length) throws IOException |
|
static void | writeWstringArray (String[] value, CdrObjectOutput out, int length, int maxStringLength) throws IOException |
|
static void | readStringArray (String[] value, CdrObjectInput in, int length) throws IOException |
|
static void | writeStringArray (String[] value, CdrObjectOutput out, int length, int maxStringLength) throws IOException |
|
Instantiates com.rti.dds.infrastructure.com.rti.dds.util.Sequence
< com.rti.dds.infrastructure.char* >
- Instantiates:
- <<generic>> com.rti.dds.infrastructure.com.rti.dds.util.Sequence
- See also
- com.rti.dds.infrastructure.char
-
com.rti.dds.infrastructure.StringSeq
-
com.rti.dds.infrastructure.com.rti.dds.util.Sequence
◆ WstringSeq() [1/3]
Constructs an empty sequence of wide strings with an initial maximum of zero.
◆ WstringSeq() [2/3]
Constructs an empty sequence of wide strings with the given initial maximum.
◆ WstringSeq() [3/3]
Constructs a new sequence containing the given wide strings.
- Parameters
-
strings | the initial contents of this sequence |
◆ readWstringArray()
static void readWstringArray |
( |
String [] |
value, |
|
|
CdrObjectInput |
in, |
|
|
int |
length |
|
) |
| throws IOException |
|
static |
Read array of strings. The length specified must match the expected length of array. Otherwise, the stream will be positioned incorrectly, leading to corrupt reads. The length of array must be at least the value of length parameter (otherwise, ArrayOutOfBoundException will be thrown).
- Parameters
-
value | array to read into |
in | Interface for reading object in CDR encoding. |
length | the length of array (<= value.length) |
◆ writeWstringArray()
static void writeWstringArray |
( |
String [] |
value, |
|
|
CdrObjectOutput |
out, |
|
|
int |
length, |
|
|
int |
maxStringLength |
|
) |
| throws IOException |
|
static |
Write array of wstring up to the specified length.