Uses of Interface
org.apache.james.mime4j.util.ByteSequence
Packages that use ByteSequence
Package
Description
-
Uses of ByteSequence in org.apache.james.mime4j.field
Methods in org.apache.james.mime4j.field that return ByteSequenceModifier and TypeMethodDescriptionAbstractField.getRaw()
Gets original (raw) representation of the field, if available,null
otherwise.Methods in org.apache.james.mime4j.field with parameters of type ByteSequenceModifier and TypeMethodDescriptionstatic ParsedField
DefaultFieldParser.parse
(ByteSequence raw, DecodeMonitor monitor) Parses the given byte sequence and returns an instance of theParsedField
class.static ParsedField
LenientFieldParser.parse
(ByteSequence raw, DecodeMonitor monitor) Parses the given byte sequence and returns an instance of theParsedField
class. -
Uses of ByteSequence in org.apache.james.mime4j.field.address
Methods in org.apache.james.mime4j.field.address with parameters of type ByteSequenceModifier and TypeMethodDescriptionLenientAddressParser.parseAddress
(ByteSequence buf, ParserCursor cursor, BitSet delimiters) LenientAddressParser.parseAddressList
(ByteSequence buf, ParserCursor cursor) (package private) String
LenientAddressParser.parseDomain
(ByteSequence buf, ParserCursor cursor, BitSet delimiters) LenientAddressParser.parseGroup
(ByteSequence buf, ParserCursor cursor) LenientAddressParser.parseMailbox
(ByteSequence buf, ParserCursor cursor, BitSet delimiters) (package private) Mailbox
LenientAddressParser.parseMailboxAddress
(String openingText, ByteSequence buf, ParserCursor cursor) LenientAddressParser.parseMailboxes
(ByteSequence buf, ParserCursor cursor, BitSet delimiters) (package private) DomainList
LenientAddressParser.parseRoute
(ByteSequence buf, ParserCursor cursor, BitSet delimiters) -
Uses of ByteSequence in org.apache.james.mime4j.internal
Methods in org.apache.james.mime4j.internal that return ByteSequenceModifier and TypeMethodDescriptionprivate static ByteSequence
ParserStreamContentHandler.loadStream
(InputStream in) -
Uses of ByteSequence in org.apache.james.mime4j.message
Fields in org.apache.james.mime4j.message declared as ByteSequenceModifier and TypeFieldDescriptionprivate ByteSequence
MultipartImpl.epilogue
private ByteSequence
MultipartImpl.preamble
Methods in org.apache.james.mime4j.message that return ByteSequenceModifier and TypeMethodDescriptionprivate ByteSequence
DefaultMessageWriter.getBoundary
(ContentTypeField contentType) MultipartImpl.getEpilogueRaw()
MultipartImpl.getPreambleRaw()
Methods in org.apache.james.mime4j.message with parameters of type ByteSequenceModifier and TypeMethodDescriptionvoid
MultipartImpl.setEpilogueRaw
(ByteSequence epilogue) void
MultipartImpl.setPreambleRaw
(ByteSequence preamble) private void
DefaultMessageWriter.writeBytes
(ByteSequence byteSequence, OutputStream out) -
Uses of ByteSequence in org.apache.james.mime4j.stream
Fields in org.apache.james.mime4j.stream declared as ByteSequenceMethods in org.apache.james.mime4j.stream that return ByteSequenceModifier and TypeMethodDescriptionField.getRaw()
Gets original (raw) representation of the field, if available,null
otherwise.RawField.getRaw()
Methods in org.apache.james.mime4j.stream with parameters of type ByteSequenceModifier and TypeMethodDescriptionvoid
RawFieldParser.copyContent
(ByteSequence buf, ParserCursor cursor, BitSet delimiters, 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, StringBuilder dst) Transfers content enclosed with quote marks into the destination buffer.void
RawFieldParser.copyUnquotedContent
(ByteSequence buf, ParserCursor cursor, BitSet delimiters, StringBuilder dst) Transfers content into the destination buffer until a whitespace character, a comment, a quote, or any of the given delimiters is encountered.RawFieldParser.parseField
(ByteSequence raw) Parses the sequence of bytes intoRawField
.RawFieldParser.parseParameter
(ByteSequence buf, ParserCursor cursor) Parses the sequence of bytes containing a field parameter delimited with semicolon intoNameValuePair
.RawFieldParser.parseParameters
(ByteSequence buf, ParserCursor cursor) Parses the sequence of bytes containing field parameters delimited with semicolon into a list ofNameValuePair
s.RawFieldParser.parseRawBody
(ByteSequence buf, ParserCursor cursor) Parses the sequence of bytes containing a value with parameters intoRawBody
.RawFieldParser.parseToken
(ByteSequence buf, ParserCursor cursor, BitSet delimiters) Extracts from the sequence of bytes a token terminated with any of the given delimiters discarding semantically insignificant whitespace characters and comments.private String
RawFieldParser.parseUtf8Filename
(ByteSequence buf) Special case for parsingfilename
attribute in nonstandard encoding like:Content-Disposition: attachment; filename="УПД ОБЩЕСТВО С ОГРАНИЧЕННОЙ ОТВЕТСТВЕННОСТЬЮ "СТАНЦИЯ ВИРТУАЛЬНАЯ" 01-05-21.pdf"
RawFieldParser.parseValue
(ByteSequence buf, ParserCursor cursor, 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.Constructors in org.apache.james.mime4j.stream with parameters of type ByteSequenceModifierConstructorDescription(package private)
RawField
(ByteSequence raw, int delimiterIdx, String name, String body) -
Uses of ByteSequence in org.apache.james.mime4j.util
Classes in org.apache.james.mime4j.util that implement ByteSequenceModifier and TypeClassDescriptionfinal class
A resizable byte array.(package private) final class
final class
A resizable byte array.Fields in org.apache.james.mime4j.util declared as ByteSequenceModifier and TypeFieldDescriptionstatic final ByteSequence
ByteSequence.EMPTY
An empty byte sequence.Methods in org.apache.james.mime4j.util that return ByteSequenceModifier and TypeMethodDescriptionstatic ByteSequence
ContentUtil.encode
(CharSequence string) Encodes the specified string into an immutable sequence of bytes using the US-ASCII charset.static ByteSequence
ContentUtil.encode
(Charset charset, CharSequence string) Encodes the specified string into an immutable sequence of bytes using the specified charset.Methods in org.apache.james.mime4j.util with parameters of type ByteSequenceModifier and TypeMethodDescriptionstatic String
ContentUtil.decode
(Charset charset, ByteSequence byteSequence) Decodes the specified sequence of bytes into a string using the specified charset.static String
ContentUtil.decode
(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.static String
ContentUtil.decode
(ByteSequence byteSequence) Decodes the specified sequence of bytes into a string using the US-ASCII charset.static 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 String
ContentUtil.decode
(ByteSequence byteSequence, int offset, int length, Charset charset) Decodes a sub-sequence of the specified sequence of bytes into a string using the US-ASCII charset with falling back toContentUtil.decode(Charset, ByteSequence, int, int)
on a first non US-ASCII character.static boolean
CharsetUtil.isASCII
(ByteSequence raw) Returnstrue
if the specified byte array consists entirely of US ASCII characters.