|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface HeaderElement
An element that can be added to a user data header. Header elements are
stateful objects as they may be output to multiple SMS segments.
Depending on their implementation, they might be outputting the same
information for each segment or different information. Therefore,
before a HeaderElement can be used to generate message segments
via UserData.toSegments() it must be in its initial state. If
a header element has previously been used, returning to its initial
state may be accomplished by invoking its reset() method.
UserData,
UserDataImpl| Method Summary | |
|---|---|
int |
getLength()
Get the total number of octets this header element encodes as excluding the IEI and the IEI-Data-Length fields. |
boolean |
isComplete()
Determine if this HeaderElement has written all its data. |
boolean |
isRecurring()
Determine if this header element should be included in the header of each message in a concatenated message. |
void |
postProcess(List<ByteBuffer> segments)
This method allows HeaderElements to post-process SMS segments after they have all been created by UserData.toSegments(). |
void |
reset()
Reset this HeaderElement to its initial state. |
boolean |
write(int segmentNum,
ByteBuffer buffer)
Encode this header element to the given ByteBuffer. |
| Method Detail |
|---|
int getLength()
void reset()
UserData implementation.
boolean isComplete()
UserData implementations.
boolean write(int segmentNum,
ByteBuffer buffer)
out - The byte buffer to write to.void postProcess(List<ByteBuffer> segments)
UserData.toSegments(). This is primarily provided for
ConcatenatedSms so that it can fill in the "total message
segments" field in each segment once the total count is known.
segments - The generated SMS segments.boolean isRecurring()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||