Java Resource Load getResource(String propertiesPath)

Here you can find the source of getResource(String propertiesPath)

Description

get Resource

License

Apache License

Declaration

private static InputStream getResource(String propertiesPath) throws Exception 

Method Source Code


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

import java.io.File;
import java.io.FileInputStream;
import java.io.InputStream;

public class Main {
    private static InputStream getResource(String propertiesPath) throws Exception {
        return new FileInputStream(new File(propertiesPath));
    }//  w  w  w  .  j  a v a 2s  .co  m
}

Related

  1. getResource(final String resource)
  2. getResource(String fileName)
  3. getResource(String fileName, int type)
  4. getResource(String name)
  5. getResource(String path)
  6. getResource(String uri)
  7. getResourceAbsolutePath(String pluginId, String... path)
  8. getResourceAsBufferedReader(Class clazz, String resourceName)
  9. getResourceAsByteArray(Object context, String resourceName)