Java Properties Load from InputStream loadProperties(final Properties properies, final InputStream inputStream)

Here you can find the source of loadProperties(final Properties properies, final InputStream inputStream)

Description

load Properties

License

Open Source License

Declaration

public static Properties loadProperties(final Properties properies, final InputStream inputStream)
            throws UnsupportedEncodingException, IOException 

Method Source Code


//package com.java2s;
//License from project: Open Source License 

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

import java.util.Properties;

public class Main {
    public static Properties loadProperties(final Properties properies, final InputStream inputStream)
            throws UnsupportedEncodingException, IOException {
        try {/*w  w w  .  j a  v a  2s  .  co  m*/
            properies.load(inputStream);
            return properies;
        } finally {
            inputStream.close();
        }
    }
}

Related

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