Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Java API interface

Ever since I started playing around with Scala, I have had one big question concerning the Java API: why does Oracle keep the same old HTML page with "frameset" tags and no search function at all? It looks like they haven't made it to the Web 2.0...

The Scala API documentation on the other hand, while not the best website in the web history, is several orders of magnitude more usable.

Anyways, if anybody knows why that is and, more importantly, if there exists a Java API documentation with a better interface, please let me know!

like image 504
seb Avatar asked Jul 04 '11 15:07

seb


People also ask

WHAT IS interface in Java API?

An application programming interface (API), in the context of Java, is a collection of prewritten packages, classes, and interfaces with their respective methods, fields and constructors.

Is API and interface same?

API is an acronym for Application Programming Interface. Note that 'Interface' is in its name. An API is one type of interface, but an interface may not be an API. Think of the interface as a pool, the API is one swimmer in the pool.

What are the 3 versions of the Java API?

Java is distributed in three different editions: Java Standard Edition (Java SE), Java Enterprise Edition (Java EE) and Java Micro Edition (Java ME).


2 Answers

Recently, for Java 7, JavaDoc was improved so it could use custom CSS. Here are the first results: http://download.java.net/jdk7/docs/api/. The work continues and I think we'll see more when new updates come out. I do agree that ScalaDoc is superior, but they didn't have to deal with 15 years of legacy.

enter image description here

enter image description here

like image 73
Eugene Ryzhikov Avatar answered Nov 05 '22 19:11

Eugene Ryzhikov


Javadocs provides the output in that format and its published at that address, I guess no one really saw the need for improvement, but now that you mention it, it makes for an interesting side-project. I googled around to find if there was any "better" interface but no luck.

You could run javadoc -h to see what extra options are available if you want to re-generate the javadocs. Some interesting ones are to provide custom header/footer and linking to the source, but nothing to the effect that you are asking.

like image 34
rajasaur Avatar answered Nov 05 '22 19:11

rajasaur