Top Description Interfaces Classes
[default module]

Package com.sun.mail.util


Utility classes for use with the JavaMail API. These utility classes are not part of the JavaMail specification. While this package contains many classes used by the JavaMail 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:

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.

Interface Summary

Modifier and TypeInterface and Description
public interface
ReadableMime

A Message or message Part whose data can be read as a MIME format stream.

Class Summary

Modifier and TypeClass and Description
public class
public class
BASE64DecoderStream

This class implements a BASE64 Decoder.

public class
BASE64EncoderStream

This class implements a BASE64 encoder.

public class
BEncoderStream

This class implements a 'B' Encoder as defined by RFC2047 for encoding MIME headers.

public class
CRLFOutputStream

Convert lines into the canonical format, that is, terminate lines with the CRLF sequence.

public class
DecodingException

A special IOException that indicates a failure to decode data due to an error in the formatting of the data.

public class
FolderClosedIOException

A variant of FolderClosedException that can be thrown from methods that only throw IOException.

public class
LineInputStream

This class is to support reading CRLF terminated lines that contain only US-ASCII characters from an input stream.

public class
LineOutputStream

This class is to support writing out Strings as a sequence of bytes terminated by a CRLF sequence.

public class
LogOutputStream

Capture output lines and send them to the mail logger.

public class
MailConnectException

A MessagingException that indicates a socket connection attempt failed.

public class
MailLogger

A simplified logger used by JavaMail to handle logging to a PrintStream and logging through a java.util.logging.Logger.

public class
MailSSLSocketFactory

An SSL socket factory that makes it easier to specify trust.

public class
MessageRemovedIOException

A variant of MessageRemovedException that can be thrown from methods that only throw IOException.

public class
MimeUtil

General MIME-related utility methods.

public class
PropUtil

Utilities to make it easier to get property values.

public class
QDecoderStream

This class implements a Q Decoder as defined in RFC 2047 for decoding MIME headers.

public class
QEncoderStream

This class implements a Q Encoder as defined by RFC 2047 for encoding MIME headers.

public class
QPDecoderStream

This class implements a QP Decoder.

public class
QPEncoderStream

This class implements a Quoted Printable Encoder.

public class
SharedByteArrayOutputStream

A ByteArrayOutputStream that allows us to share the byte array rather than copy it.

public class
SocketConnectException

An IOException that indicates a socket connection attempt failed.

public class
SocketFetcher

This class is used to get Sockets.

pack-priv class
TimeoutOutputStream

An OutputStream that wraps the Socket's OutputStream and uses the ScheduledExecutorService to schedule a task to close the socket (aborting the write) if the timeout expires.

public class
TraceInputStream

This class is a FilterInputStream that writes the bytes being read from the given input stream into the given output stream.

public class
TraceOutputStream

This class is a subclass of DataOutputStream that copies the data being written into the DataOutputStream into another output stream.

public class
UUDecoderStream

This class implements a UUDecoder.

public class
UUEncoderStream

This class implements a UUEncoder.

public class
WriteTimeoutSocket

A special Socket that uses a ScheduledExecutorService to implement timeouts for writes.