All of these document classes have the same basic functionality, and each of them extends based on a niche that needs to be filled. Actually, this is just a question of what you need to do and use the appropriate type of document. For example, if I edit an HTML file, then I would use the HTMLDocument class.
I have included a brief description of each of the document classes that you requested in your question below.
Document
The document interface is an entire HTML or XML document. Conceptually, this is the root of the document tree and primary access to document data.
This is the interface on which all other types of documents are inherited. It provides a contract for all other types of documents.
AbstractDocument
, , , .
. , .
StyledDocument
, . DefaultStyledDocument , .
DefaultStyledDocument
, , Rich Text . . ( ). , .
DefaultStyledDocument , .. Microsoft Word, DefaultStyledDocument.
DocumentFilter
hen , DocumentFilter ( ), DocumentFilter.
, "" , (.. ), .
PlainDocument
AbstractDocument - (Think notepad vs. Word). , ( ..).
HTMLDocument
, HTML. - , .
HTMLDocument , / , HTML-, .