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  RawFieldbased on the internal state. | 
| ByteArrayBuffer | getRaw()Returns combined content of all lines processed so far or  nullif 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()
FieldBuilderreset in interface FieldBuilderpublic void append(ByteArrayBuffer line) throws MaxHeaderLengthLimitException
FieldBuilderappend in interface FieldBuilderMaxHeaderLengthLimitExceptionpublic RawField build() throws MimeException
FieldBuilderRawField based on the internal state.build in interface FieldBuilderMimeExceptionpublic ByteArrayBuffer getRaw()
FieldBuildernull
 if the builder does not retain original raw content.getRaw in interface FieldBuilderCopyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.