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()
FieldBuilder
reset
在接口中 FieldBuilder
public void append(ByteArrayBuffer line) throws MaxHeaderLengthLimitException
FieldBuilder
append
在接口中 FieldBuilder
line
- ByteArrayBufferMaxHeaderLengthLimitException
public RawField build() throws MimeException
FieldBuilder
RawField
based on the internal state.build
在接口中 FieldBuilder
MimeException
- MimeExceptionpublic ByteArrayBuffer getRaw()
FieldBuilder
null
if the builder does not retain original raw content.getRaw
在接口中 FieldBuilder