SyndEnclosure javadoc and SyndContent type specification

View: New views
1 Messages — Rating Filter:   Alert me  

SyndEnclosure javadoc and SyndContent type specification

by Jean Hominal :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,
I am contributing to the development of a server-side feed reading
software, and some points in the API's documentation were not very
clear to me, namely:

* The SyndEnclosure Javadoc page
(https://rome.dev.java.net/apidocs/1_0/com/sun/syndication/feed/synd/SyndEnclosure.html)
is devoid of either description or summary. And I was quite confused
when I read on the SyndLink Javadoc page
(https://rome.dev.java.net/apidocs/1_0/com/sun/syndication/feed/synd/SyndLink.html)
that SyndLink "Represents a link or enclosure associated with entry."
I'm currently assuming that SyndEntry.getEnclosures returns a List of
SyndEnclosure, because that would be most natural, but I would like
that to be confirmed.

* The SyndFeed.getLinks() methods states that it "Returns the entry
links", which does not seem quite natural; shouldn't these links
rather concern the feed itself?

* The SyndContent.getType()
(https://rome.dev.java.net/apidocs/1_0/com/sun/syndication/feed/synd/SyndContentk.html)
says that it returns the content's type. On the other hand, the Atom
Specification I read states that an entry type can be either "html",
"text", "xhtml", or a "simple" MIME type. My question was, does the
SyndContent.getType() method always return either null or a MIME type,
or does it also return abridged forms of some common types? In the
end, it boils down to: "what are the possible return values for this
method?"

Thank you in advance for your help,
--
Jean Hominal

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...