Java Properties Load from File load(InputStream in)

Here you can find the source of load(InputStream in)

Description

load

License

Apache License

Declaration

public static Properties load(InputStream in) 

Method Source Code


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

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

import java.util.Properties;

public class Main {
    public static Properties load(InputStream in) {
        Properties p = new Properties();
        try {/*from   w  w  w.  ja  va2 s.  c  om*/
            p.load(in);
        } catch (FileNotFoundException e) {
            e.printStackTrace();
        } catch (IOException e) {
            e.printStackTrace();
        }
        return p;
    }
}

Related

  1. load(File file, Properties data)
  2. load(File propertiesFile)
  3. load(final Class key, final String env, final Properties defaults)
  4. load(final Properties props, final Properties toLoad)
  5. load(final String folder, final String fileName)
  6. load(InputStream input)
  7. load(InputStream inputStream)
  8. load(InputStream is)
  9. load(InputStream stream)