Top Description Fields Constructors Methods
org.eclipse.jgit.attributes

public Class AttributesNode

extends Object
Class Inheritance
Known Direct Subclasses
org.eclipse.jgit.dircache.DirCacheIterator.LazyLoadingAttributesNode, org.eclipse.jgit.internal.storage.dfs.DfsRepository.EmptyAttributesNodeProvider.EmptyAttributesNode, org.eclipse.jgit.internal.storage.file.GlobalAttributesNode, org.eclipse.jgit.internal.storage.file.InfoAttributesNode, org.eclipse.jgit.treewalk.WorkingTreeIterator.PerDirectoryAttributesNode
Static Imports
java.nio.charset.StandardCharsets.UTF_8

Represents a bundle of attributes inherited from a base directory. This class is not thread safe, it maintains state about the last match.
Since
3.7

Field Summary

Modifier and TypeField and Description
private final List<AttributesRule>
rules

The rules that have been parsed into this node.

Constructor Summary

AccessConstructor and Description
public
AttributesNode()

Create an empty ignore node with no rules.

public
AttributesNode(List<AttributesRule>
list of rules.
rules
)

Create an ignore node with given rules.

Method Summary

Modifier and TypeMethod and Description
private static BufferedReader
public List<AttributesRule>

Returns:

list of all ignore rules held by this node
getRules
()

Getter for the field rules.

public void
parse(InputStream
input stream holding the standard ignore format. The caller is responsible for closing the stream.
in
)

Parse files according to gitattribute standards.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

rulesback to summary
private final List<AttributesRule> rules

The rules that have been parsed into this node.

Constructor Detail

AttributesNodeback to summary
public AttributesNode()

Create an empty ignore node with no rules.

AttributesNodeback to summary
public AttributesNode(List<AttributesRule> rules)

Create an ignore node with given rules.

Parameters
rules:List<AttributesRule>

list of rules.

Method Detail

asReaderback to summary
private static BufferedReader asReader(InputStream in)
getRulesback to summary
public List<AttributesRule> getRules()

Getter for the field rules.

Returns:List<AttributesRule>

list of all ignore rules held by this node

parseback to summary
public void parse(InputStream in) throws IOException

Parse files according to gitattribute standards.

Parameters
in:InputStream

input stream holding the standard ignore format. The caller is responsible for closing the stream.

Exceptions
IOException:
Error thrown when reading an ignore file.