D
Douglas
I'm learning struts at the moment and in one example the code for a business
class opens an input stream to a file using this code:
java.io.InputStream i =
this.getClass().getClassLoader().getResourceAsStream("UserFile");
The InputStream object is then used to load data from the file into a
java.util.Properties object.
My question is, why would someone open an input stream to a file this way?
Cheers.
class opens an input stream to a file using this code:
java.io.InputStream i =
this.getClass().getClassLoader().getResourceAsStream("UserFile");
The InputStream object is then used to load data from the file into a
java.util.Properties object.
My question is, why would someone open an input stream to a file this way?
Cheers.