Class S7.StringA
java.lang.Object
com.pnfsoftware.jeb.core.units.code.simatic.S7.StringA
- Enclosing class:
S7
STRING types parser.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintRetrieve the current string length.intRetrieve the maximum string length.intRetrieve the number of bytes used by this STRING in memory.byte[]Retrieve the current string bytes.toString()
-
Field Details
-
MIN_LEN
public static final int MIN_LENMinimum STRING maximum length.- See Also:
-
MAX_LEN
public static final int MAX_LENMaximum STRING maximum length.- See Also:
-
-
Constructor Details
-
StringA
public StringA(int maxlen, byte[] stringBytes) Create a STRING value.- Parameters:
maxlen- maximum number of charactersstringBytes- current string bytes
-
-
Method Details
-
getCurrentLength
public int getCurrentLength()Retrieve the current string length.- Returns:
- current length in bytes
-
getMaximumLength
public int getMaximumLength()Retrieve the maximum string length.- Returns:
- maximum length in bytes
-
getMemorySizeInBytes
public int getMemorySizeInBytes()Retrieve the number of bytes used by this STRING in memory.- Returns:
- memory size in bytes
-
getStringBytes
public byte[] getStringBytes()Retrieve the current string bytes.- Returns:
- string bytes
-
toString
-