# Hierarchy For All Packages

Package Hierarchies:

- com.sun.mail.auth,
- com.sun.mail.dsn,
- com.sun.mail.gimap,
- com.sun.mail.gimap.protocol,
- com.sun.mail.handlers,
- com.sun.mail.iap,
- com.sun.mail.imap,
- com.sun.mail.imap.protocol,
- com.sun.mail.pop3,
- com.sun.mail.smtp,
- com.sun.mail.util,
- com.sun.mail.util.logging,
- javax.mail,
- javax.mail.event,
- javax.mail.internet,
- javax.mail.search,
- javax.mail.util

## Class Hierarchy

- java.lang.Object
  - com.sun.mail.imap.ACL (implements java.lang.Cloneable)
  - javax.mail.Address (implements java.io.Serializable)
    - javax.mail.internet.InternetAddress (implements java.lang.Cloneable)
    - javax.mail.internet.NewsAddress
  - javax.mail.internet.AddressException
  - javax.mail.search.AddressStringTerm
  - javax.mail.search.AddressTerm
  - javax.mail.search.AndTerm
  - com.sun.mail.pop3.AppendStream
  - com.sun.mail.imap.AppendUID
  - com.sun.mail.iap.Argument
  - javax.mail.internet.AsciiOutputStream
  - com.sun.mail.util.ASCIIUtility
  - com.sun.mail.iap.AString
  - com.sun.mail.iap.Atom
  - javax.mail.AuthenticationFailedException
  - javax.mail.Authenticator
  - com.sun.mail.iap.BadCommandException
  - com.sun.mail.util.BASE64DecoderStream
  - com.sun.mail.util.BASE64EncoderStream
  - com.sun.mail.imap.protocol.BASE64MailboxDecoder
  - com.sun.mail.imap.protocol.BASE64MailboxEncoder
  - com.sun.mail.util.BEncoderStream
  - com.sun.mail.imap.protocol.BODY (implements com.sun.mail.imap.protocol.Item)
  - javax.mail.BodyPart (implements javax.mail.Part)
    - javax.mail.internet.MimeBodyPart (implements javax.mail.internet.MimePart)
      - com.sun.mail.imap.IMAPBodyPart (implements com.sun.mail.util.ReadableMime)
      - javax.mail.internet.PreencodedMimeBodyPart
  - com.sun.mail.imap.protocol.BODYSTRUCTURE (implements com.sun.mail.imap.protocol.Item)
  - javax.mail.search.BodyTerm
  - com.sun.mail.iap.ByteArray
  - javax.mail.util.ByteArrayDataSource (implements javax.activation.DataSource)
  - com.sun.mail.util.logging.CollectorFormatter
  - com.sun.mail.iap.CommandFailedException
  - com.sun.mail.util.logging.CompactFormatter
  - javax.mail.search.ComparisonTerm
  - javax.mail.event.ConnectionAdapter (implements javax.mail.event.ConnectionListener)
  - javax.mail.event.ConnectionEvent
  - com.sun.mail.iap.ConnectionException
  - javax.mail.event.ConnectionListener
  - javax.mail.internet.ContentDisposition
  - javax.mail.internet.ContentType
  - com.sun.mail.imap.CopyUID
  - com.sun.mail.util.CRLFOutputStream
  - javax.mail.search.DateTerm
  - com.sun.mail.util.DecodingException
  - com.sun.mail.imap.DefaultFolder
  - com.sun.mail.pop3.DefaultFolder
  - com.sun.mail.smtp.DigestMD5
  - com.sun.mail.util.logging.DurationFilter (implements java.util.logging.Filter)
  - javax.mail.EncodingAware
  - com.sun.mail.imap.protocol.ENVELOPE (implements com.sun.mail.imap.protocol.Item)
  - java.util.EventObject (implements java.io.Serializable)
    - javax.mail.event.MailEvent
      - javax.mail.event.ConnectionEvent
      - javax.mail.event.FolderEvent
      - javax.mail.event.MessageChangedEvent
      - javax.mail.event.MessageCountEvent
        - com.sun.mail.imap.MessageVanishedEvent
      - javax.mail.event.StoreEvent
      - javax.mail.event.TransportEvent
  - javax.mail.EventQueue
  - com.sun.mail.imap.protocol.FetchItem
  - javax.mail.FetchProfile
  - javax.mail.FetchProfile.Item
    - com.sun.mail.gimap.GmailFolder.FetchProfileItem
    - com.sun.mail.imap.IMAPFolder.FetchProfileItem
    - javax.mail.UIDFolder.FetchProfileItem
  - com.sun.mail.imap.protocol.FetchResponse
  - javax.mail.Flags (implements java.lang.Cloneable, java.io.Serializable)
    - com.sun.mail.imap.protocol.FLAGS (implements com.sun.mail.imap.protocol.Item)
  - com.sun.mail.imap.protocol.FLAGS
  - javax.mail.Flags.Flag
  - javax.mail.search.FlagTerm
  - javax.mail.Folder (implements java.lang.AutoCloseable)
    - com.sun.mail.pop3.DefaultFolder
    - com.sun.mail.imap.IMAPFolder (implements com.sun.mail.iap.ResponseHandler, javax.mail.UIDFolder)
      - com.sun.mail.imap.DefaultFolder
      - com.sun.mail.gimap.GmailFolder
    - com.sun.mail.pop3.POP3Folder
  - javax.mail.event.FolderAdapter (implements javax.mail.event.FolderListener)
  - javax.mail.FolderClosedException
  - com.sun.mail.util.FolderClosedIOException
  - javax.mail.event.FolderEvent
  - javax.mail.event.FolderListener
  - javax.mail.FolderNotFoundException
  - java.text.Format (implements java.lang.Cloneable, java.io.Serializable)
    - java.text.DateFormat
      - java.text.SimpleDateFormat
        - javax.mail.internet.MailDateFormat
  - java.util.logging.Formatter
    - com.sun.mail.util.logging.CollectorFormatter
    - com.sun.mail.util.logging.CompactFormatter
  - javax.mail.search.FromStringTerm
  - javax.mail.search.FromTerm
  - java.util.logging.Handler
    - com.sun.mail.util.logging.MailHandler
  - com.sun.mail.handlers.handler_base (implements javax.activation.DataContentHandler)
    - com.sun.mail.handlers.image_gif
      - com.sun.mail.handlers.image_jpeg
    - com.sun.mail.handlers.message_rfc822
    - com.sun.mail.handlers.multipart_mixed
    - com.sun.mail.handlers.text_plain
      - com.sun.mail.handlers.text_html
      - com.sun.mail.handlers.text_xml
  - javax.mail.Header
    - javax.mail.internet.InternetHeaders.InternetHeader
  - javax.mail.search.HeaderTerm
  - javax.mail.internet.HeaderTokenizer
  - javax.mail.internet.HeaderTokenizer.Token
  - com.sun.mail.imap.protocol.ID
  - com.sun.mail.imap.IdleManager
  - javax.mail.IllegalWriteException
  - com.sun.mail.handlers.image_gif
  - com.sun.mail.handlers.image_jpeg
  - com.sun.mail.imap.protocol.IMAPAddress
  - com.sun.mail.imap.IMAPBodyPart
  - com.sun.mail.imap.IMAPFolder
  - com.sun.mail.imap.IMAPInputStream
  - com.sun.mail.imap.IMAPMessage
  - com.sun.mail.imap.IMAPMessage.FetchProfileCondition (implements com.sun.mail.imap.Utility.Condition)
  - com.sun.mail.imap.IMAPMultipartDataSource
  - com.sun.mail.imap.IMAPNestedMessage
  - com.sun.mail.imap.protocol.IMAPProtocol
  - com.sun.mail.imap.protocol.IMAPReferralException
  - com.sun.mail.imap.protocol.IMAPResponse
  - com.sun.mail.imap.protocol.IMAPSaslAuthenticator (implements com.sun.mail.imap.protocol.SaslAuthenticator)
  - com.sun.mail.imap.IMAPSSLStore
  - com.sun.mail.imap.IMAPStore
  - java.io.InputStream (implements java.io.Closeable)
    - java.io.ByteArrayInputStream
      - javax.mail.util.SharedByteArrayInputStream (implements javax.mail.internet.SharedInputStream)
    - java.io.FilterInputStream
      - com.sun.mail.util.BASE64DecoderStream
      - java.io.BufferedInputStream
        - javax.mail.util.SharedFileInputStream (implements javax.mail.internet.SharedInputStream)
      - com.sun.mail.util.LineInputStream
      - com.sun.mail.util.QPDecoderStream
        - com.sun.mail.util.QDecoderStream
      - com.sun.mail.util.TraceInputStream
      - com.sun.mail.util.UUDecoderStream
    - com.sun.mail.imap.IMAPInputStream
  - javax.mail.search.IntegerComparisonTerm
  - com.sun.mail.imap.protocol.INTERNALDATE (implements com.sun.mail.imap.protocol.Item)
  - javax.mail.internet.InternetAddress
  - javax.mail.internet.InternetHeaders
  - com.sun.mail.imap.protocol.Item
  - com.sun.mail.imap.LengthCounter
  - com.sun.mail.util.LineInputStream
  - com.sun.mail.util.LineOutputStream
  - com.sun.mail.imap.protocol.ListInfo
  - com.sun.mail.iap.Literal
  - com.sun.mail.iap.LiteralException
  - com.sun.mail.util.logging.LogManagerProperties
  - com.sun.mail.util.LogOutputStream
  - com.sun.mail.imap.protocol.MailboxInfo
  - com.sun.mail.util.MailConnectException
  - javax.mail.internet.MailDateFormat
  - javax.mail.event.MailEvent
  - com.sun.mail.util.logging.MailHandler
  - com.sun.mail.util.MailLogger
  - javax.mail.MailSessionDefinition
  - javax.mail.MailSessionDefinitions
  - com.sun.mail.util.MailSSLSocketFactory
  - com.sun.mail.auth.MD4
  - javax.mail.Message (implements javax.mail.Part)
    - javax.mail.internet.MimeMessage (implements javax.mail.internet.MimePart)
      - com.sun.mail.imap.IMAPMessage (implements com.sun.mail.util.ReadableMime)
        - com.sun.mail.gimap.GmailMessage
        - com.sun.mail.imap.IMAPNestedMessage
      - com.sun.mail.dsn.MessageHeaders
      - com.sun.mail.pop3.POP3Message (implements com.sun.mail.util.ReadableMime)
      - com.sun.mail.smtp.SMTPMessage
  - com.sun.mail.dsn.message_deliverystatus (implements javax.activation.DataContentHandler)
  - com.sun.mail.dsn.message_dispositionnotification (implements javax.activation.DataContentHandler)
  - com.sun.mail.handlers.message_rfc822
  - javax.mail.Message.RecipientType (implements java.io.Serializable)
    - javax.mail.internet.MimeMessage.RecipientType
  - javax.mail.MessageAware
  - com.sun.mail.imap.MessageCache
  - javax.mail.event.MessageChangedEvent
  - javax.mail.event.MessageChangedListener
  - javax.mail.MessageContext
  - javax.mail.event.MessageCountAdapter (implements javax.mail.event.MessageCountListener)
  - javax.mail.event.MessageCountEvent
  - javax.mail.event.MessageCountListener
  - javax.mail.search.MessageIDTerm
  - com.sun.mail.imap.MessageLiteral
  - javax.mail.search.MessageNumberTerm
  - javax.mail.MessageRemovedException
  - com.sun.mail.util.MessageRemovedIOException
  - com.sun.mail.imap.protocol.MessageSet
  - com.sun.mail.imap.MessageVanishedEvent
  - javax.mail.MessagingException
  - javax.mail.MethodNotSupportedException
  - javax.mail.internet.MimeBodyPart
  - javax.mail.internet.MimeMessage
  - javax.mail.internet.MimeMultipart
  - javax.mail.internet.MimePart
  - javax.mail.internet.MimePartDataSource (implements javax.activation.DataSource, javax.mail.MessageAware)
    - com.sun.mail.imap.IMAPMultipartDataSource (implements javax.mail.MultipartDataSource)
  - com.sun.mail.util.MimeUtil
  - javax.mail.internet.MimeUtility
  - com.sun.mail.imap.ModifiedSinceTerm
  - com.sun.mail.imap.protocol.MODSEQ (implements com.sun.mail.imap.protocol.Item)
  - javax.mail.Multipart
    - javax.mail.internet.MimeMultipart
      - com.sun.mail.dsn.MultipartReport
  - com.sun.mail.handlers.multipart_mixed
  - com.sun.mail.dsn.multipart_report (implements javax.activation.DataContentHandler)
  - javax.mail.MultipartDataSource
  - com.sun.mail.imap.protocol.Namespaces
  - com.sun.mail.imap.protocol.Namespaces.Namespace
  - javax.mail.internet.NewsAddress
  - javax.mail.NoSuchProviderException
  - javax.mail.search.NotTerm
  - com.sun.mail.iap.NString
  - com.sun.mail.auth.Ntlm
  - com.sun.mail.auth.OAuth2SaslClient (implements javax.security.sasl.SaslClient)
  - com.sun.mail.auth.OAuth2SaslClientFactory (implements javax.security.sasl.SaslClientFactory)
  - com.sun.mail.imap.OlderTerm
  - javax.mail.search.OrTerm
  - java.io.OutputStream (implements java.io.Closeable, java.io.Flushable)
    - java.io.ByteArrayOutputStream
      - com.sun.mail.util.SharedByteArrayOutputStream
    - java.io.FilterOutputStream
      - com.sun.mail.util.BASE64EncoderStream
        - com.sun.mail.util.BEncoderStream
      - com.sun.mail.util.CRLFOutputStream
        - com.sun.mail.smtp.SMTPOutputStream
      - com.sun.mail.util.LineOutputStream
      - com.sun.mail.util.QPEncoderStream
        - com.sun.mail.util.QEncoderStream
      - com.sun.mail.util.TraceOutputStream
      - com.sun.mail.util.UUEncoderStream
    - com.sun.mail.util.LogOutputStream
  - javax.mail.internet.ParameterList
  - javax.mail.internet.ParseException
  - com.sun.mail.iap.ParsingException
  - javax.mail.Part
  - javax.mail.PasswordAuthentication
  - com.sun.mail.pop3.POP3Folder
  - com.sun.mail.pop3.POP3Message
  - com.sun.mail.pop3.POP3SSLStore
  - com.sun.mail.pop3.POP3Store
  - javax.mail.internet.PreencodedMimeBodyPart
  - com.sun.mail.util.PropUtil
  - com.sun.mail.iap.Protocol
    - com.sun.mail.imap.protocol.IMAPProtocol
      - com.sun.mail.gimap.protocol.GmailProtocol
  - com.sun.mail.pop3.Protocol
  - com.sun.mail.iap.ProtocolException
  - javax.mail.Provider
  - javax.mail.Provider.Type
  - com.sun.mail.util.QDecoderStream
  - com.sun.mail.util.QEncoderStream
  - com.sun.mail.util.QPDecoderStream
  - com.sun.mail.util.QPEncoderStream
  - javax.mail.Quota
  - javax.mail.Quota.Resource
  - javax.mail.QuotaAwareStore
  - com.sun.mail.util.ReadableMime
  - javax.mail.ReadOnlyFolderException
  - javax.mail.search.ReceivedDateTerm
  - javax.mail.search.RecipientStringTerm
  - javax.mail.search.RecipientTerm
  - com.sun.mail.imap.ReferralException
  - com.sun.mail.dsn.Report
    - com.sun.mail.dsn.DeliveryStatus
    - com.sun.mail.dsn.DispositionNotification
  - com.sun.mail.iap.Response
    - com.sun.mail.imap.protocol.IMAPResponse
      - com.sun.mail.imap.protocol.FetchResponse
  - com.sun.mail.pop3.Response
  - com.sun.mail.iap.ResponseHandler
  - com.sun.mail.iap.ResponseInputStream
  - com.sun.mail.imap.ResyncData
  - com.sun.mail.imap.protocol.RFC822DATA (implements com.sun.mail.imap.protocol.Item)
  - com.sun.mail.imap.protocol.RFC822SIZE (implements com.sun.mail.imap.protocol.Item)
  - com.sun.mail.imap.Rights (implements java.lang.Cloneable)
  - com.sun.mail.imap.Rights.Right
  - com.sun.mail.imap.protocol.SaslAuthenticator
  - com.sun.mail.smtp.SaslAuthenticator
  - javax.mail.search.SearchException
  - com.sun.mail.imap.protocol.SearchSequence
    - com.sun.mail.gimap.protocol.GmailSearchSequence
  - javax.mail.search.SearchTerm (implements java.io.Serializable)
    - javax.mail.search.AddressTerm
      - javax.mail.search.FromTerm
      - javax.mail.search.RecipientTerm
    - javax.mail.search.AndTerm
    - javax.mail.search.ComparisonTerm
      - javax.mail.search.DateTerm
        - javax.mail.search.ReceivedDateTerm
        - javax.mail.search.SentDateTerm
      - javax.mail.search.IntegerComparisonTerm
        - javax.mail.search.MessageNumberTerm
        - javax.mail.search.SizeTerm
    - javax.mail.search.FlagTerm
    - com.sun.mail.gimap.GmailMsgIdTerm
    - com.sun.mail.gimap.GmailThrIdTerm
    - com.sun.mail.imap.ModifiedSinceTerm
    - javax.mail.search.NotTerm
    - com.sun.mail.imap.OlderTerm
    - javax.mail.search.OrTerm
    - javax.mail.search.StringTerm
      - javax.mail.search.AddressStringTerm
        - javax.mail.search.FromStringTerm
        - javax.mail.search.RecipientStringTerm
      - javax.mail.search.BodyTerm
      - com.sun.mail.gimap.GmailRawSearchTerm
      - javax.mail.search.HeaderTerm
      - javax.mail.search.MessageIDTerm
      - javax.mail.search.SubjectTerm
    - com.sun.mail.imap.YoungerTerm
  - javax.mail.SendFailedException
  - javax.mail.search.SentDateTerm
  - javax.mail.Service (implements java.lang.AutoCloseable)
    - javax.mail.Store
      - com.sun.mail.imap.IMAPStore (implements javax.mail.QuotaAwareStore, com.sun.mail.iap.ResponseHandler)
        - com.sun.mail.gimap.GmailStore
          - com.sun.mail.gimap.GmailSSLStore
        - com.sun.mail.imap.IMAPSSLStore
      - com.sun.mail.pop3.POP3Store
        - com.sun.mail.pop3.POP3SSLStore
    - javax.mail.Transport
      - com.sun.mail.smtp.SMTPTransport
        - com.sun.mail.smtp.SMTPSSLTransport
  - javax.mail.Session
  - com.sun.mail.util.logging.SeverityComparator (implements java.util.Comparator<T>, java.io.Serializable)
  - javax.mail.util.SharedByteArrayInputStream
  - com.sun.mail.util.SharedByteArrayOutputStream
  - javax.mail.util.SharedFileInputStream
  - javax.mail.internet.SharedInputStream
  - javax.mail.search.SizeTerm
  - com.sun.mail.smtp.SMTPAddressFailedException
  - com.sun.mail.smtp.SMTPAddressSucceededException
  - com.sun.mail.smtp.SMTPMessage
  - com.sun.mail.smtp.SMTPOutputStream
  - com.sun.mail.smtp.SMTPSaslAuthenticator (implements com.sun.mail.smtp.SaslAuthenticator)
  - com.sun.mail.smtp.SMTPSenderFailedException
  - com.sun.mail.smtp.SMTPSendFailedException
  - com.sun.mail.smtp.SMTPSSLTransport
  - com.sun.mail.smtp.SMTPTransport
  - java.net.Socket (implements java.io.Closeable)
    - com.sun.mail.util.WriteTimeoutSocket
  - com.sun.mail.util.SocketConnectException
  - javax.net.SocketFactory
    - javax.net.ssl.SSLSocketFactory
      - com.sun.mail.util.MailSSLSocketFactory
  - com.sun.mail.util.SocketFetcher
  - com.sun.mail.imap.SortTerm
  - com.sun.mail.imap.protocol.Status
  - com.sun.mail.pop3.Status
  - javax.mail.Store
  - javax.mail.StoreClosedException
  - javax.mail.event.StoreEvent
  - javax.mail.event.StoreListener
  - javax.mail.StreamLoader
  - javax.mail.search.StringTerm
  - javax.mail.search.SubjectTerm
  - com.sun.mail.pop3.TempFile
  - com.sun.mail.handlers.text_html
  - com.sun.mail.handlers.text_plain
  - com.sun.mail.dsn.text_rfc822headers (implements javax.activation.DataContentHandler)
  - com.sun.mail.handlers.text_xml
  - java.lang.Throwable (implements java.io.Serializable)
    - java.lang.Exception
      - java.io.IOException
        - com.sun.mail.util.DecodingException
        - com.sun.mail.util.FolderClosedIOException
        - com.sun.mail.util.MessageRemovedIOException
        - com.sun.mail.util.SocketConnectException
      - javax.mail.MessagingException
        - javax.mail.AuthenticationFailedException
          - com.sun.mail.imap.ReferralException
        - javax.mail.FolderClosedException
        - javax.mail.FolderNotFoundException
        - javax.mail.IllegalWriteException
        - com.sun.mail.util.MailConnectException
        - javax.mail.MessageRemovedException
        - javax.mail.MethodNotSupportedException
        - javax.mail.NoSuchProviderException
        - javax.mail.internet.ParseException
          - javax.mail.internet.AddressException
        - javax.mail.ReadOnlyFolderException
        - javax.mail.search.SearchException
        - javax.mail.SendFailedException
          - com.sun.mail.smtp.SMTPAddressFailedException
          - com.sun.mail.smtp.SMTPSenderFailedException
          - com.sun.mail.smtp.SMTPSendFailedException
        - com.sun.mail.smtp.SMTPAddressSucceededException
        - javax.mail.StoreClosedException
      - com.sun.mail.iap.ProtocolException
        - com.sun.mail.iap.BadCommandException
        - com.sun.mail.iap.CommandFailedException
        - com.sun.mail.iap.ConnectionException
        - com.sun.mail.imap.protocol.IMAPReferralException
        - com.sun.mail.iap.LiteralException
        - com.sun.mail.iap.ParsingException
  - com.sun.mail.util.TimeoutOutputStream
  - com.sun.mail.util.TraceInputStream
  - com.sun.mail.util.TraceOutputStream
  - javax.mail.Transport
  - javax.mail.event.TransportAdapter (implements javax.mail.event.TransportListener)
  - javax.mail.event.TransportEvent
  - javax.mail.event.TransportListener
  - com.sun.mail.imap.protocol.UID (implements com.sun.mail.imap.protocol.Item)
  - javax.mail.UIDFolder
  - com.sun.mail.imap.protocol.UIDSet
  - javax.mail.internet.UniqueValue
  - javax.mail.URLName
  - com.sun.mail.imap.Utility
  - com.sun.mail.util.UUDecoderStream
  - com.sun.mail.util.UUEncoderStream
  - javax.mail.Version
  - com.sun.mail.pop3.WritableSharedFile
  - com.sun.mail.util.WriteTimeoutSocket
  - com.sun.mail.imap.YoungerTerm

## Interface Hierarchy

- javax.activation.DataSource
  - javax.mail.MultipartDataSource
- javax.mail.EncodingAware
- java.util.EventListener
  - javax.mail.event.ConnectionListener
  - javax.mail.event.FolderListener
  - javax.mail.event.MessageChangedListener
  - javax.mail.event.MessageCountListener
  - javax.mail.event.StoreListener
  - javax.mail.event.TransportListener
- com.sun.mail.imap.IMAPFolder.ProtocolCommand
- com.sun.mail.imap.protocol.Item
- com.sun.mail.iap.Literal
- javax.mail.MessageAware
- javax.mail.Part
  - javax.mail.internet.MimePart
- javax.mail.QuotaAwareStore
- com.sun.mail.util.ReadableMime
- com.sun.mail.iap.ResponseHandler
- com.sun.mail.imap.protocol.SaslAuthenticator
- com.sun.mail.smtp.SaslAuthenticator
- javax.mail.internet.SharedInputStream
- javax.mail.UIDFolder
- com.sun.mail.imap.Utility.Condition

## Annotation Type Hierarchy

- javax.mail.MailSessionDefinition (implements java.lang.annotation.Annotation)
- javax.mail.MailSessionDefinitions (implements java.lang.annotation.Annotation)