Java Folder Read getFileSystemProperties(String path)

Here you can find the source of getFileSystemProperties(String path)

Description

get File System Properties

License

Apache License

Declaration

public static Properties getFileSystemProperties(String path) 

Method Source Code


//package com.java2s;
//License from project: Apache License 

import java.io.BufferedInputStream;
import java.io.File;
import java.io.FileInputStream;

import java.io.InputStream;
import java.io.IOException;

import java.util.Properties;

public class Main {

    public static Properties getFileSystemProperties(String path) {
        Properties props = null;//from  w w w . j a va2 s  .co m
        try {
            InputStream is = new BufferedInputStream(new FileInputStream(new File(path)));
            props = new Properties();
            props.load(is);
        } catch (IOException e) {
            e.printStackTrace();
        }
        return props;
    }
}

Related

  1. getFileStatus(File file)
  2. getFileString(File file)
  3. getFileString(String filePath)
  4. getFileStringContent(String filename)
  5. GetFilesWithChildren(File root, ArrayList files)
  6. getFileSystemProperty(String name)