Java Properties Load from InputStream loadProperties(InputStream input)

Here you can find the source of loadProperties(InputStream input)

Description

load Properties

License

Open Source License

Declaration

private static Properties loadProperties(InputStream input) 

Method Source Code


//package com.java2s;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.Properties;

public class Main {
    private static Properties loadProperties(InputStream input) {
        InputStreamReader reader;
        Properties props = new Properties();
        try {/*  ww w  .j a v  a2 s . c  o  m*/
            reader = new InputStreamReader(input, "utf8");
            props.load(reader);
        } catch (Exception e) {
            e.printStackTrace();
            return null;
        }
        return props;
    }
}

Related

  1. loadProperties(Class aClass, String aFileName, InputStream aResourceAsStream)
  2. loadProperties(final InputStream in)
  3. loadProperties(final InputStream io)
  4. loadProperties(final Properties properies, final InputStream inputStream)
  5. loadProperties(InputStream input)
  6. loadProperties(InputStream inputStream)
  7. loadProperties(InputStream inputStream)
  8. loadProperties(InputStream inputStream)
  9. loadProperties(InputStream inputStream, Properties result)