Instantiates com.rti.dds.infrastructure.com.rti.dds.util.Sequence
< com.rti.dds.infrastructure.char* >
More...
Public Member Functions |
| WstringSeq () |
| Constructs an empty sequence of wide strings with an initial maximum of zero.
|
|
| WstringSeq (int initialMaximum) |
| Constructs an empty sequence of wide strings with the given initial maximum.
|
|
| WstringSeq (Collection strings) |
| Constructs a new sequence containing the given wide strings.
|
|
| StringSeq () |
| Constructs an empty sequence of strings with an initial maximum of zero.
|
|
| StringSeq (int initialMaximum) |
| Constructs an empty sequence of strings with the given initial maximum.
|
|
| StringSeq (Collection strings) |
| Constructs a new sequence containing the given strings.
|
|
final Object | copy_from (Object src) |
|
| ArraySequence (Class elementType) |
|
| ArraySequence (Class elementType, Collection elements) |
|
boolean | equals (Object o) |
|
int | getMaximum () |
| Get the current maximum number of elements that can be stored in this sequence.
|
|
void | setMaximum (int new_max) |
| Resize this sequence to a new desired maximum.
|
|
Class | getElementType () |
|
Object | copy_from (Object src) |
| Copy value of a data type from source.
|
|
Static Public Member Functions |
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 |
|
Detailed Description
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
Constructor & Destructor Documentation
Constructs an empty sequence of wide strings with an initial maximum of zero.
Constructs an empty sequence of wide strings with the given initial maximum.
Constructs a new sequence containing the given wide strings.
- Parameters
-
strings | the initial contents of this sequence |
Member Function Documentation
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) |
static void writeWstringArray |
( |
String[] |
value, |
|
|
CdrObjectOutput |
out, |
|
|
int |
length, |
|
|
int |
maxStringLength |
|
) |
| throws IOException |
|
static |
Write array of wstring up to the specified length.