Harvinder Thakur wrote:I also need to be able to include files of following types to create ebook content:
HTML pages, URLs, DOC/TXT, PDF, GIF, JPG, PNG, WAV, XML, Flash.
What API do i need to read all such content and then create PDF or Flash as output?
For PDF an answer has already been given - you could use iText.
Writing HTML or plain text files is easy.
Java has a good
2D graphics API that you can use to draw images, and with the ImageIO class you read and write different image file formats such as GIF, JPG and PNG.
Class javax.sound.sampled.AudioSystem has methods to write audio to a file, for example a WAV file.
Java has a number of APIs to work with XML, see the packages that start with javax.xml.
I don't know about any way to write Flash files from Java.
You're asking for a lot of different things, and your question is very general. Writing a program that does something will all those different kinds of file formats is a major project, and not something that you'd do in one or two days.