InputStream to File Object

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

InputStream to File Object

by Ashok Deivasigamani :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,
I have a jar, inside which I have a list of xml files in a folder.
I used ClassLoader.getResourcesAsStream on that folder to get the byteInputStream of that folder.

How can I create a File Object for the retrieved byteInputStream. If we can create a File Object, can I be able to retrieve the xml files in that File Object.

Will this approch work, If we were to deploy this project as a war in a server