Package nxt.util.bbh
Class StringRw
- java.lang.Object
-
- nxt.util.bbh.StringRw
-
-
Constructor Summary
Constructors Constructor Description StringRw(LengthRwPrimitiveType lengthRw, int maxCharLength)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getSize(java.lang.String string)
java.lang.String
readFromBuffer(java.nio.ByteBuffer buffer)
boolean
validate(java.lang.String s)
void
writeToBuffer(java.lang.String t, java.nio.ByteBuffer buffer)
-
-
-
Constructor Detail
-
StringRw
public StringRw(LengthRwPrimitiveType lengthRw, int maxCharLength)
-
-
Method Detail
-
getSize
public int getSize(java.lang.String string)
-
readFromBuffer
public java.lang.String readFromBuffer(java.nio.ByteBuffer buffer) throws NxtException.NotValidException
- Specified by:
readFromBuffer
in interfaceObjectRw<java.lang.String>
- Throws:
NxtException.NotValidException
-
writeToBuffer
public void writeToBuffer(java.lang.String t, java.nio.ByteBuffer buffer)
- Specified by:
writeToBuffer
in interfaceObjectRw<java.lang.String>
-
-