public class DefaultFieldBuilder extends Object implements FieldBuilder
FieldBuilder
.Constructor and Description |
---|
DefaultFieldBuilder(int maxlen) |
Modifier and Type | Method and Description |
---|---|
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.
|
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
Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.