|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.james.mime4j.stream.DefaultFieldBuilder
public class DefaultFieldBuilder
Default implementation of FieldBuilder
.
Constructor Summary | |
---|---|
DefaultFieldBuilder(int maxlen)
|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultFieldBuilder(int maxlen)
Method Detail |
---|
public void reset()
FieldBuilder
reset
in interface FieldBuilder
public void append(ByteArrayBuffer line) throws MaxHeaderLengthLimitException
FieldBuilder
append
in interface FieldBuilder
MaxHeaderLengthLimitException
public RawField build() throws MimeException
FieldBuilder
RawField
based on the internal state.
build
in interface FieldBuilder
MimeException
public ByteArrayBuffer getRaw()
FieldBuilder
null
if the builder does not retain original raw content.
getRaw
in interface FieldBuilder
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |