Package com.sun.mail.util


package com.sun.mail.util
Utility classes for use with the Jakarta Mail API. These utility classes are not part of the Jakarta Mail specification. While this package contains many classes used by the Jakarta Mail implementation and not intended for direct use by applications, the classes documented here may be of use to applications.

Classes in this package log debugging information using java.util.logging as described in the following table:

com.sun.mail.util Loggers
Logger Name Logging Level Purpose
com.sun.mail.util.socket FINER Debugging output related to creating sockets

WARNING: The APIs in this package should be considered EXPERIMENTAL. They may be changed in the future in ways that are incompatible with applications using the current APIs.

  • Class
    Description
     
    This class implements a BASE64 Decoder.
    This class implements a BASE64 encoder.
    This class implements a 'B' Encoder as defined by RFC2047 for encoding MIME headers.
    Convert lines into the canonical format, that is, terminate lines with the CRLF sequence.
    A special IOException that indicates a failure to decode data due to an error in the formatting of the data.
    Annotation to mark the default providers that are part of Jakarta Mail.
    LineInputStream supports reading CRLF terminated lines that contain only US-ASCII characters from an input stream.
    This class is to support writing out Strings as a sequence of bytes terminated by a CRLF sequence.
    Capture output lines and send them to the mail logger.
    A MessagingException that indicates a socket connection attempt failed.
    A simplified logger used by Jakarta Mail to handle logging to a PrintStream and logging through a java.util.logging.Logger.
    An SSL socket factory that makes it easier to specify trust.
    Contains the required encoders/decoders and streams required by the API.
    Utilities to make it easier to get property values.
    This class implements a Q Decoder as defined in RFC 2047 for decoding MIME headers.
    This class implements a Q Encoder as defined by RFC 2047 for encoding MIME headers.
    This class implements a QP Decoder.
    This class implements a Quoted Printable Encoder.
    A Message or message Part whose data can be read as a MIME format stream.
    A ByteArrayOutputStream that allows us to share the byte array rather than copy it.
    An IOException that indicates a socket connection attempt failed.
    This class is used to get Sockets.
    This class is a FilterInputStream that writes the bytes being read from the given input stream into the given output stream.
    This class is a subclass of DataOutputStream that copies the data being written into the DataOutputStream into another output stream.
    This class implements a UUDecoder.
    This class implements a UUEncoder.
    A special Socket that uses a ScheduledExecutorService to implement timeouts for writes.