RTI Connext Java API
Version 5.1.0
|
Declares IDL sequence
< com.rti.dds.infrastructure.String > .
More...
Public Member Functions | |
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) |
Public Member Functions inherited from ArraySequence | |
ArraySequence (Class elementType) | |
ArraySequence (Class elementType, Collection elements) | |
boolean | equals (Object o) |
Public Member Functions inherited from Sequence | |
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 () |
Public Member Functions inherited from Copyable | |
Object | copy_from (Object src) |
Copy value of a data type from source. | |
Static Public Member Functions | |
static void | readStringArray (String[] value, CdrObjectInput in, int length) throws IOException |
static void | writeStringArray (String[] value, CdrObjectOutput out, int length, int maxStringLength) throws IOException |
Declares IDL sequence
< com.rti.dds.infrastructure.String > .
Instantiates com.rti.dds.infrastructure.com.rti.dds.util.Sequence
< com.rti.dds.infrastructure.String > with value type semantics.
StringSeq is a sequence that contains 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.
strings | the initial contents of this sequence |
NullPointerException | if the input collection is null |
final Object copy_from | ( | Object | src | ) |
Copy data into this
object from another. The result of this method is that both this
and src
will be the same size and contain the same data.
src | The Object which contains the data to be copied |
this
but special cases (such as Enum
) exist. NullPointerException | If src is null OR if there are null objects contained in this sequence. |
ClassCastException | If src is not the same type as this . |
|
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).
value | array to read into |
in | Interface for reading object in CDR encoding. |
length | the length of array (<= value.length) |
|
static |
Write array of string up to the specified length