| Modifier and Type | Method and Description |
|---|---|
ByteSequence |
AbstractField.getRaw()
Gets original (raw) representation of the field, if available,
null otherwise. |
| Modifier and Type | Method and Description |
|---|---|
static ParsedField |
LenientFieldParser.parse(ByteSequence raw,
DecodeMonitor monitor)
Parses the given byte sequence and returns an instance of the
ParsedField class. |
static ParsedField |
DefaultFieldParser.parse(ByteSequence raw,
DecodeMonitor monitor)
Parses the given byte sequence and returns an instance of the
ParsedField class. |
| Modifier and Type | Method and Description |
|---|---|
Address |
LenientAddressParser.parseAddress(ByteSequence buf,
ParserCursor cursor,
java.util.BitSet delimiters) |
AddressList |
LenientAddressParser.parseAddressList(ByteSequence buf,
ParserCursor cursor) |
(package private) java.lang.String |
LenientAddressParser.parseDomain(ByteSequence buf,
ParserCursor cursor,
java.util.BitSet delimiters) |
Group |
LenientAddressParser.parseGroup(ByteSequence buf,
ParserCursor cursor) |
Mailbox |
LenientAddressParser.parseMailbox(ByteSequence buf,
ParserCursor cursor,
java.util.BitSet delimiters) |
(package private) Mailbox |
LenientAddressParser.parseMailboxAddress(java.lang.String openingText,
ByteSequence buf,
ParserCursor cursor) |
(package private) java.util.List<Mailbox> |
LenientAddressParser.parseMailboxes(ByteSequence buf,
ParserCursor cursor,
java.util.BitSet delimiters) |
(package private) DomainList |
LenientAddressParser.parseRoute(ByteSequence buf,
ParserCursor cursor,
java.util.BitSet delimiters) |
| Modifier and Type | Method and Description |
|---|---|
private static ByteSequence |
ParserStreamContentHandler.loadStream(java.io.InputStream in) |
| Modifier and Type | Field and Description |
|---|---|
private ByteSequence |
MultipartImpl.epilogue |
private ByteSequence |
MultipartImpl.preamble |
| Modifier and Type | Method and Description |
|---|---|
private ByteSequence |
DefaultMessageWriter.getBoundary(ContentTypeField contentType) |
ByteSequence |
MultipartImpl.getEpilogueRaw() |
ByteSequence |
MultipartImpl.getPreambleRaw() |
| Modifier and Type | Method and Description |
|---|---|
void |
MultipartImpl.setEpilogueRaw(ByteSequence epilogue) |
void |
MultipartImpl.setPreambleRaw(ByteSequence preamble) |
private void |
DefaultMessageWriter.writeBytes(ByteSequence byteSequence,
java.io.OutputStream out) |
| Modifier and Type | Field and Description |
|---|---|
private ByteSequence |
RawField.raw |
| Modifier and Type | Method and Description |
|---|---|
ByteSequence |
RawField.getRaw() |
ByteSequence |
Field.getRaw()
Gets original (raw) representation of the field, if available,
null otherwise. |
| Modifier and Type | Method and Description |
|---|---|
void |
RawFieldParser.copyContent(ByteSequence buf,
ParserCursor cursor,
java.util.BitSet delimiters,
java.lang.StringBuilder dst)
Transfers content into the destination buffer until a whitespace character, a comment,
or any of the given delimiters is encountered.
|
void |
RawFieldParser.copyQuotedContent(ByteSequence buf,
ParserCursor cursor,
java.lang.StringBuilder dst)
Transfers content enclosed with quote marks into the destination buffer.
|
void |
RawFieldParser.copyUnquotedContent(ByteSequence buf,
ParserCursor cursor,
java.util.BitSet delimiters,
java.lang.StringBuilder dst)
Transfers content into the destination buffer until a whitespace character, a comment,
a quote, or any of the given delimiters is encountered.
|
RawField |
RawFieldParser.parseField(ByteSequence raw)
Parses the sequence of bytes into
RawField. |
NameValuePair |
RawFieldParser.parseParameter(ByteSequence buf,
ParserCursor cursor)
Parses the sequence of bytes containing a field parameter delimited with semicolon into
NameValuePair. |
java.util.List<NameValuePair> |
RawFieldParser.parseParameters(ByteSequence buf,
ParserCursor cursor)
Parses the sequence of bytes containing field parameters delimited with semicolon into
a list of
NameValuePairs. |
RawBody |
RawFieldParser.parseRawBody(ByteSequence buf,
ParserCursor cursor)
Parses the sequence of bytes containing a value with parameters into
RawBody. |
java.lang.String |
RawFieldParser.parseToken(ByteSequence buf,
ParserCursor cursor,
java.util.BitSet delimiters)
Extracts from the sequence of bytes a token terminated with any of the given delimiters
discarding semantically insignificant whitespace characters and comments.
|
java.lang.String |
RawFieldParser.parseValue(ByteSequence buf,
ParserCursor cursor,
java.util.BitSet delimiters)
Extracts from the sequence of bytes a value which can be enclosed in quote marks and
terminated with any of the given delimiters discarding semantically insignificant
whitespace characters and comments.
|
void |
RawFieldParser.skipAllWhiteSpace(ByteSequence buf,
ParserCursor cursor)
Skips semantically insignificant whitespace characters and comments and moves the cursor
to the closest semantically significant non-whitespace character.
|
void |
RawFieldParser.skipComment(ByteSequence buf,
ParserCursor cursor)
Skips semantically insignificant content if the current position is positioned at the
beginning of a comment and moves the cursor past the end of the comment.
|
void |
RawFieldParser.skipWhiteSpace(ByteSequence buf,
ParserCursor cursor)
Skips semantically insignificant whitespace characters and moves the cursor to the closest
non-whitespace character.
|
| Constructor and Description |
|---|
RawField(ByteSequence raw,
int delimiterIdx,
java.lang.String name,
java.lang.String body) |
| Modifier and Type | Class and Description |
|---|---|
class |
ByteArrayBuffer
A resizable byte array.
|
(package private) class |
EmptyByteSequence |
| Modifier and Type | Field and Description |
|---|---|
static ByteSequence |
ByteSequence.EMPTY
An empty byte sequence.
|
| Modifier and Type | Method and Description |
|---|---|
static ByteSequence |
ContentUtil.encode(java.lang.CharSequence string)
Encodes the specified string into an immutable sequence of bytes using
the US-ASCII charset.
|
static ByteSequence |
ContentUtil.encode(java.nio.charset.Charset charset,
java.lang.CharSequence string)
Encodes the specified string into an immutable sequence of bytes using
the specified charset.
|
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
ContentUtil.decode(ByteSequence byteSequence)
Decodes the specified sequence of bytes into a string using the US-ASCII
charset.
|
static java.lang.String |
ContentUtil.decode(ByteSequence byteSequence,
int offset,
int length)
Decodes a sub-sequence of the specified sequence of bytes into a string
using the US-ASCII charset.
|
static java.lang.String |
ContentUtil.decode(java.nio.charset.Charset charset,
ByteSequence byteSequence)
Decodes the specified sequence of bytes into a string using the specified
charset.
|
static java.lang.String |
ContentUtil.decode(java.nio.charset.Charset charset,
ByteSequence byteSequence,
int offset,
int length)
Decodes a sub-sequence of the specified sequence of bytes into a string
using the specified charset.
|