Thursday 22 December 2011

Load hash table from file

Load hash table from file
This task use java to load hash table from file.
Load hash table from file using FileInputStream
public void loadHash(Properties properties, String filename) {
    try {
        FileInputStream fis = new FileInputStream(filename); 
        properties.load(fis);
        fis.close();
    } catch (Exception e) {
        logger.error("", e);
    }
}
    

  Protected by Copyscape Online Copyright Protection

No comments:

Post a Comment