I need to grab a a.properties file from the server, use the parameters throughout for other classes.
I have a constants class created
public static final something = "";
...
I have this code started, but I'm not sure if this is what I need to do to get the properties file off the server.
import java.util.Properties;
import java.io.FileInputStream;
public class MyProperties extends Properties{
public MyProperties() {}
public MyProperties(String absoluteName) throws Exception {
super();
FileInputStream is = new FileInputStream(absoluteName);
load(is);
is.close();
}
}
Dano
dskryzer@hotmail.com
What's your major malfunction
I have a constants class created
public static final something = "";
...
I have this code started, but I'm not sure if this is what I need to do to get the properties file off the server.
import java.util.Properties;
import java.io.FileInputStream;
public class MyProperties extends Properties{
public MyProperties() {}
public MyProperties(String absoluteName) throws Exception {
super();
FileInputStream is = new FileInputStream(absoluteName);
load(is);
is.close();
}
}
Dano
dskryzer@hotmail.com
What's your major malfunction