public interface Tokenizable
NOTE: It is recommended that the string format chosen include an initial field to distinguish the format version used. It is very likely that multiple versions of the writeToken output for your descriptors will need to be handled gracefully by a single version of readToken.
|Modifier and Type||Method and Description|
Initialize the descriptor from a previously saved string token.
Put the state of this descriptor into a string token.
void writeToken(java.lang.StringBuilder buf)
buf- Buffer that the representation should be appended to. Line ending chars are illegal and should not be used.
boolean readToken(java.lang.String writtenToken, DescriptorContext dctx)
writtenToken- as the name suggests
dctx- The context in which the descriptor is being recreated