org.eclipse.jgit.lib
Class BlobBasedConfig

java.lang.Object
  extended by org.eclipse.jgit.lib.Config
      extended by org.eclipse.jgit.lib.BlobBasedConfig

public class BlobBasedConfig
extends Config

The configuration file based on the blobs stored in the repository


Nested Class Summary
 
Nested classes/interfaces inherited from class org.eclipse.jgit.lib.Config
Config.SectionParser<T>
 
Constructor Summary
BlobBasedConfig(Config base, byte[] blob)
          The constructor from a byte array
BlobBasedConfig(Config base, Commit commit, java.lang.String path)
          The constructor from commit and path
BlobBasedConfig(Config base, Repository r, ObjectId objectId)
          The constructor from object identifier
 
Method Summary
 
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
 

Constructor Detail

BlobBasedConfig

public BlobBasedConfig(Config base,
                       byte[] blob)
                throws ConfigInvalidException
The constructor from a byte array

Parameters:
base - the base configuration file
blob - 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 file
r - the repository
objectId - 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 file
commit - the commit that contains the object
path - 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.