public class BlobBasedConfig extends Config
.gitmodules file.Config.ConfigEnum, Config.SectionParser<T>| Constructor and Description |
|---|
BlobBasedConfig(Config base,
byte[] blob)
Parse a configuration from a byte array.
|
BlobBasedConfig(Config base,
Repository db,
AnyObjectId objectId)
Load a configuration file from a blob.
|
BlobBasedConfig(Config base,
Repository db,
AnyObjectId treeish,
String path)
Load a configuration file from a blob stored in a specific commit.
|
addChangeListener, clear, fireConfigChangedEvent, fromText, get, getBoolean, getBoolean, getEnum, getEnum, getInt, getInt, getLong, getLong, getNames, getNames, getNames, getNames, getSections, getString, getStringList, getSubsections, notifyUponTransientChanges, setBoolean, setEnum, setInt, setLong, setString, setStringList, toText, uncache, unset, unsetSectionpublic BlobBasedConfig(Config base, byte[] blob) throws ConfigInvalidException
base - the base configuration fileblob - the byte array, should be UTF-8 encoded text.ConfigInvalidException - the byte array is not a valid configuration format.public BlobBasedConfig(Config base, Repository db, AnyObjectId objectId) throws IOException, ConfigInvalidException
base - the base configuration filedb - the repositoryobjectId - the object identifierIOException - the blob cannot be read from the repository.ConfigInvalidException - the blob is not a valid configuration format.public BlobBasedConfig(Config base, Repository db, AnyObjectId treeish, String path) throws FileNotFoundException, IOException, ConfigInvalidException
base - the base configuration filedb - the repository containing the objects.treeish - the tree (or commit) that contains the objectpath - the path within the treeFileNotFoundException - the path does not exist in the commit's tree.IOException - the tree and/or blob cannot be accessed.ConfigInvalidException - the blob is not a valid configuration format.Copyright © 2014. All rights reserved.