Back to project page androiddevice.info.
The source code is released under:
GNU General Public License
If you think the Android project androiddevice.info listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package info.androiddevice.deviceinventory.info; /*from w w w.j a v a 2 s . co m*/ import org.json.JSONObject; import static info.androiddevice.deviceinventory.info.Utils.readFile; public abstract class FileProperty implements Property { @Override public Object getProperty() { try { return readFile(getFilename()); } catch (Exception e) { return JSONObject.NULL; } } protected abstract String getFilename(); }