Class StringValue
java.lang.Object
svm.value.Value
svm.value.StringValue
StringValue.
Link to GitHub: Source File.
- Author:
- S-Port: Definition of S-code, Øystein Myhre Andersen
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe address to the charactersintThe length of the string -
Constructor Summary
ConstructorsConstructorDescriptionDefault ConstructorStringValue(ObjectAddress addr, int lng) Construct a new StringValue with the given parameters -
Method Summary
Modifier and TypeMethodDescriptionstatic StringValueread(AttributeInputStream inpt) Reads a StringValue from the given input.toString()voidwrite(AttributeOutputStream oupt) Writes this Value to the given output.
-
Field Details
-
addr
The address to the characters -
lng
public int lngThe length of the string
-
-
Constructor Details
-
StringValue
public StringValue()Default Constructor -
StringValue
Construct a new StringValue with the given parameters- Parameters:
addr- the address to the characterslng- the length of the string
-
-
Method Details
-
toString
-
write
Description copied from class:ValueWrites this Value to the given output.- Overrides:
writein classValue- Parameters:
oupt- the output stream- Throws:
IOException- if IOException occur
-
read
Reads a StringValue from the given input.- Parameters:
inpt- the AttributeInputStream- Returns:
- the StringValue read
- Throws:
IOException- if IOException occur
-