public class DefaultFieldBuilder extends java.lang.Object implements FieldBuilder
Description:
Title:首亨软件 - TSS/CRM等
| 构造器和说明 |
|---|
DefaultFieldBuilder(int maxlen) |
| 限定符和类型 | 方法和说明 |
|---|---|
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()
FieldBuilderreset 在接口中 FieldBuilderpublic void append(ByteArrayBuffer line) throws MaxHeaderLengthLimitException
FieldBuilderappend 在接口中 FieldBuilderline - ByteArrayBufferMaxHeaderLengthLimitExceptionpublic RawField build() throws MimeException
FieldBuilderRawField based on the internal state.build 在接口中 FieldBuilderMimeException - MimeExceptionpublic ByteArrayBuffer getRaw()
FieldBuildernull
if the builder does not retain original raw content.getRaw 在接口中 FieldBuilder