Package | Description |
---|---|
com.peterphi.std.io | |
com.peterphi.std.util |
Modifier and Type | Method | Description |
---|---|---|
static PropertyFile |
PropertyFile.find() |
|
static PropertyFile |
PropertyFile.find(ClassLoader classloader,
String... fileNames) |
Find a property file
|
static PropertyFile |
PropertyFile.find(String fileName) |
|
static PropertyFile[] |
PropertyFile.findAll(ClassLoader loader,
String name) |
Find all property files by the name
name by searching the specified classloader |
static PropertyFile[] |
PropertyFile.findAll(String name) |
Find all property files by the name
name by searching the classloader that owns PropertyFile |
static PropertyFile |
PropertyFile.fromString(String contents) |
|
static PropertyFile |
PropertyFile.fromString(String contents,
String filename) |
|
static PropertyFile |
PropertyFile.openResource(ClassLoader classloader,
URL resource,
String fileName) |
|
static PropertyFile |
PropertyFile.readOnly(File filename) |
Creates a read-only version of a property file
Fails if the file does not exist. |
static PropertyFile |
PropertyFile.readOnlyUnion(PropertyFile... files) |
Construct a new read-only PropertyFile which merges the contents of a number of other PropertyFile objects
Null PropertyFiles are ignored. |
static PropertyFile |
PropertyFile.readOnlyUnion(File... filenames) |
Creates a read-only union of a number of property files
If any property file is null or the file it points to does not exist then it is ignored |
Modifier and Type | Method | Description |
---|---|---|
void |
PropertyFile.BlankLine.append(Writer w,
PropertyFile p) |
|
void |
PropertyFile.Comment.append(Writer w,
PropertyFile p) |
|
abstract void |
PropertyFile.Entry.append(Writer w,
PropertyFile p) |
|
void |
PropertyFile.NameValuePair.append(Writer w,
PropertyFile p) |
|
void |
PropertyFile.merge(PropertyFile other) |
Merges another PropertyFile into this PropertyFile, overwriting any conflicting properties with the value from
other |
void |
PropertyFile.merge(PropertyFile other,
IMergeConflictResolver conflictResolver) |
Merges another PropertyFile into this PropertyFile, using an optional merge conflict resolver
If no merge conflict resolver is specified then the default will be that the properties from other will
overwrite the local properties |
static PropertyFile |
PropertyFile.readOnlyUnion(PropertyFile... files) |
Construct a new read-only PropertyFile which merges the contents of a number of other PropertyFile objects
Null PropertyFiles are ignored. |
Modifier and Type | Method | Description |
---|---|---|
static PropertyFile |
ClassManifestLocator.get(Class<?> clazz) |
Attempt to find the MANIFEST.MF associated with a particular class
|
Copyright © 2018. All rights reserved.