Newer
Older
talkCrawler / src / talkcrawler / TalkCrawlerProperties.java
package talkcrawler;

import java.io.BufferedInputStream;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

public class TalkCrawlerProperties extends Properties {
    public TalkCrawlerProperties() {
        super();
    }
    
    public TalkCrawlerProperties load() throws FileNotFoundException, IOException {
        try (InputStream inStream = new BufferedInputStream(new FileInputStream("talkCrawler.properties"))) {
            this.load(inStream);
        }
        return this;
    }
}