public final class OtrAssembler extends Object
| Constructor and Description |
|---|
OtrAssembler(InstanceTag ownInstance) |
| Modifier and Type | Method and Description |
|---|---|
String |
accumulate(String msgText)
Appends a message fragment to the internal buffer and returns
the full message if msgText was no fragmented message or all
the fragments have been combined.
|
void |
discard()
Discard current fragment buffer and reset the counters.
|
public OtrAssembler(InstanceTag ownInstance)
public String accumulate(String msgText) throws ProtocolException, UnknownInstanceException
A fragmented OTR message looks like this: (V2) ?OTR,k,n,piece-k, or (V3) ?OTR|sender_instance|receiver_instance,k,n,piece-k,
msgText - Message to be processed.ProtocolException - MVN_PASS_JAVADOC_INSPECTIONUnknownInstanceException - MVN_PASS_JAVADOC_INSPECTIONpublic void discard()
Copyright © 2015. All rights reserved.