|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jmatio.types.MLArray
com.jmatio.types.MLChar
public class MLChar
Field Summary |
---|
Fields inherited from class com.jmatio.types.MLArray |
---|
attributes, dims, mtFLAG_COMPLEX, mtFLAG_GLOBAL, mtFLAG_LOGICAL, mtFLAG_TYPE, mxCELL_CLASS, mxCHAR_CLASS, mxDOUBLE_CLASS, mxFUNCTION_CLASS, mxINT16_CLASS, mxINT32_CLASS, mxINT64_CLASS, mxINT8_CLASS, mxOBJECT_CLASS, mxOPAQUE_CLASS, mxSINGLE_CLASS, mxSPARSE_CLASS, mxSTRUCT_CLASS, mxUINT16_CLASS, mxUINT32_CLASS, mxUINT64_CLASS, mxUINT8_CLASS, mxUNKNOWN_CLASS, name, type |
Constructor Summary | |
---|---|
MLChar(String name,
int[] dims,
int type,
int attributes)
|
|
MLChar(String name,
String value)
Creates the 1 x String.length() MLChar from the given
String. |
|
MLChar(String name,
String[] values)
Create the MLChar from array of String s. |
|
MLChar(String name,
String[] values,
int maxlen)
Added method to allow initialization of a char array representing an array of strings. |
Method Summary | |
---|---|
String |
contentToString()
|
Character[] |
createArray(int m,
int n)
|
boolean |
equals(Object o)
|
Character[] |
exportChar()
|
Character |
getChar(int m,
int n)
|
String |
getString(int m)
Gets the m-th character matrix's row as String . |
void |
set(String value)
Populates the MLChar with the String value. |
void |
set(String value,
int idx)
Set one row, specifying the row. |
void |
setChar(char ch,
int index)
|
Methods inherited from class com.jmatio.types.MLArray |
---|
dispose, getDimensions, getFlags, getIndex, getM, getN, getName, getNameToByteArray, getNDimensions, getSize, getType, isCell, isChar, isComplex, isDouble, isEmpty, isFunctionObject, isInt16, isInt32, isInt64, isInt8, isLogical, isObject, isOpaque, isSingle, isSparse, isStruct, isUint16, isUint32, isUint64, isUint8, isUnknown, toString, typeToString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MLChar(String name, String value)
String.length()
MLChar
from the given
String.
name
- the MLArray
namevalue
- the Stringpublic MLChar(String name, String[] values)
MLChar
from array of String
s.
name
- the MLArray
namevalues
- the array of String
spublic MLChar(String name, String[] values, int maxlen)
name
- values
- maxlen
- public MLChar(String name, int[] dims, int type, int attributes)
Method Detail |
---|
public Character[] createArray(int m, int n)
createArray
in interface GenericArrayCreator<Character>
public void setChar(char ch, int index)
public void set(String value)
MLChar
with the String
value.
value
- the String valuepublic void set(String value, int idx)
value
- idx
- public Character getChar(int m, int n)
public Character[] exportChar()
public boolean equals(Object o)
equals
in class Object
public String getString(int m)
String
.
m
- - row number
String
public String contentToString()
contentToString
in class MLArray
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |