|
What "type of batch file"? What are you talking about?
If you want to display a files contents solely using Java, and no other applications (which runs counter to what you asked in the first post), then you need to program your app in such a way that it recognises the file type and then uses the proper libraries to display it. And, no, there is "super function" that does all this for you.
For PDF Google for the iText library.
If you want to be able to have Java use some other application to display whatever file it wishes to display, then, as I have already said, see the API docs for the DeskTop class.
|