Here you can find the source of loadAccessTokenProperties( InputStream inputStream)
public static Properties loadAccessTokenProperties( InputStream inputStream)
//package com.java2s; //License from project: Open Source License import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.IOException; import java.io.InputStream; import java.util.Properties; public class Main { public static Properties loadAccessTokenProperties( InputStream inputStream) { Properties properties = new Properties(); try {// w ww . j a v a2 s .co m properties.load(inputStream); } catch (IOException ioException) { // ignore } return properties; } public static Properties loadAccessTokenProperties() { try { return loadAccessTokenProperties(new FileInputStream(new File( System.getProperty("user.home"), "soup_accesstoken.properties"))); } catch (FileNotFoundException fileNotFoundException) { return new Properties(); } } }