QuotedPrintableMailCodec class
Provides quoted printable encoder and decoder. Compare https://tools.ietf.org/html/rfc2045#page-19 for details.
Constructors
- QuotedPrintableMailCodec.new()
-
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
decodeData(
String part) → Uint8List -
override
-
decodeText(
String part, Encoding codec, {bool isHeader = false}) → String -
Decodes the specified text
override
-
encodeHeader(
String text, {int nameLength = 0, Codec codec = utf8, bool fromStart = false}) → String -
Encodes the header text in Q encoding only if required.
Compare https://tools.ietf.org/html/rfc2047#section-4.2 for details.
text
specifies the text to be encoded.nameLength
the length of the header name, for calculating the wrapping point.codec
the optional codec, which defaults to utf8. Set the optionalfromStart
to true in case the encoding should start at the beginning of the text and not in the middle.override -
encodeText(
String text, {Codec codec = MailCodec.encodingUtf8, bool wrap = true}) → String -
Encodes the specified text in quoted printable format.
text
specifies the text to be encoded.codec
the optional codec, which defaults to utf8. Setwrap
to false in case you do not want to wrap lines.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited