public class Package extends Object
Note: This class was primarily designed for the needs that were very specific for Chillout Development. The general usage of this class will probably be very limited, we put it here to move more of our codebase available publicly.
| Modifier and Type | Field and Description |
|---|---|
static Package |
DEFAULT_PACKAGE
Default application package.
|
static String |
DEFAULT_RESOURCE
Default core properties file path.
|
static String |
PROPERTY_VERSION
Default property name for version.
|
| Constructor and Description |
|---|
Package() |
| Modifier and Type | Method and Description |
|---|---|
String |
getVersion()
Returns package version.
|
void |
init()
Initialize with default properties resource.
|
protected void |
init(InputStream stream)
Initialize properties from given resource.
|
void |
init(URL url)
Initialize properties from given resource.
|
public static final String PROPERTY_VERSION
public static final String DEFAULT_RESOURCE
public static final Package DEFAULT_PACKAGE
public void init()
public void init(URL url)
url - Properties location.protected void init(InputStream stream) throws IOException
stream - Properties stream.IOException - When I/O error occurs while loading properties from stream.public String getVersion()
Copyright © 2014–2017 RafaĆ Wrzeszcz - Wrzasq.pl. All rights reserved.