org.eclipse.jgit.lib
Class BlobBasedConfig
java.lang.Object
org.eclipse.jgit.lib.Config
org.eclipse.jgit.lib.BlobBasedConfig
public class BlobBasedConfig
- extends Config
The configuration file based on the blobs stored in the repository
| Methods inherited from class org.eclipse.jgit.lib.Config |
clear, fromText, get, getBoolean, getBoolean, getInt, getInt, getLong, getString, getStringList, getSubsections, setBoolean, setInt, setLong, setString, setStringList, toText, uncache, unset |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BlobBasedConfig
public BlobBasedConfig(Config base,
byte[] blob)
throws ConfigInvalidException
- The constructor from a byte array
- Parameters:
base - the base configuration fileblob - the byte array, should be UTF-8 encoded text.
- Throws:
ConfigInvalidException - the byte array is not a valid configuration format.
BlobBasedConfig
public BlobBasedConfig(Config base,
Repository r,
ObjectId objectId)
throws java.io.IOException,
ConfigInvalidException
- The constructor from object identifier
- Parameters:
base - the base configuration filer - the repositoryobjectId - the object identifier
- Throws:
java.io.IOException - the blob cannot be read from the repository.
ConfigInvalidException - the blob is not a valid configuration format.
BlobBasedConfig
public BlobBasedConfig(Config base,
Commit commit,
java.lang.String path)
throws java.io.FileNotFoundException,
java.io.IOException,
ConfigInvalidException
- The constructor from commit and path
- Parameters:
base - the base configuration filecommit - the commit that contains the objectpath - the path within the tree of the commit
- Throws:
java.io.FileNotFoundException - the path does not exist in the commit's tree.
java.io.IOException - the tree and/or blob cannot be accessed.
ConfigInvalidException - the blob is not a valid configuration format.