|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface FieldBuilder
Field builders are intended to construct RawField
instances from multiple lines
contained in ByteArrayBuffer
s.
reset()
method in order to reset builder's internal state and make it
ready to start the process of building a new RawField
.append(ByteArrayBuffer)
method one or multiple times in order to build
an internal representation of a MIME field from individual lines of text.getRaw()
method can be invoked in order to get combined content
of all lines processed so far. Please note builder implementations can return
null
if they do not retain original raw content.build()
method in order to generate a RawField
instance
based on the internal state of the builder.
Method Summary | |
---|---|
void |
append(ByteArrayBuffer line)
Updates builder's internal state by adding a new line of text. |
RawField |
build()
Builds an instance of RawField based on the internal state. |
ByteArrayBuffer |
getRaw()
Returns combined content of all lines processed so far or null
if the builder does not retain original raw content. |
void |
reset()
Resets the internal state of the builder making it ready to process new input. |
Method Detail |
---|
void reset()
void append(ByteArrayBuffer line) throws MimeException
MimeException
RawField build() throws MimeException
RawField
based on the internal state.
MimeException
ByteArrayBuffer getRaw()
null
if the builder does not retain original raw content.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |