com.stimulsoft.base.utils
Class StiResourceUtil

java.lang.Object
  extended by com.stimulsoft.base.utils.StiResourceUtil

public class StiResourceUtil
extends Object

Utils used to load resources Copyright Stimulsoft


Field Summary
static String RESOURCE_PATH
          Path to resources in jar file
 
Constructor Summary
StiResourceUtil()
           
 
Method Summary
static byte[] getResource(String path)
          Get resoutce
static InputStream getStream(String path)
          return InputStream for resources
static URL getURL(String path)
          return InputStream for resources
static ImageIcon loadIcon(String path)
          Load ImageIcon from resources
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RESOURCE_PATH

public static final String RESOURCE_PATH
Path to resources in jar file

See Also:
Constant Field Values
Constructor Detail

StiResourceUtil

public StiResourceUtil()
Method Detail

getStream

public static InputStream getStream(String path)
return InputStream for resources

Parameters:
path -
Returns:
InputStream

getURL

public static URL getURL(String path)
return InputStream for resources

Parameters:
path -
Returns:
InputStream

getResource

public static byte[] getResource(String path)
Get resoutce

Parameters:
path - to resource
Returns:
byte array

loadIcon

public static ImageIcon loadIcon(String path)
Load ImageIcon from resources

Parameters:
path -
Returns:
ImageIcon


Copyright © 2017 Stimulsoft. All Rights Reserved.