MessageBuilder.SplitPolicy
public static class MessageBuilder.SplitPolicy.CharSequenceSplitPolicy extends java.lang.Object implements MessageBuilder.SplitPolicy
MessageBuilder.SplitPolicy
implementation. Splits on a specified CharSequence
.MessageBuilder.SplitPolicy.CharSequenceSplitPolicy
ANYWHERE, NEWLINE, SPACE
Modifier and Type | Method | Description |
---|---|---|
int |
nextMessage(int currentBeginIndex,
MessageBuilder builder) |
Calculates the endIndex for the next
Message . |
onChars
public int nextMessage(int currentBeginIndex, MessageBuilder builder)
MessageBuilder.SplitPolicy
Message
.nextMessage
in interface MessageBuilder.SplitPolicy
currentBeginIndex
- the index the next Message
should start frombuilder
- the MessageBuilder
Message