public class AttributesNode
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private java.util.List<AttributesRule> |
rules
The rules that have been parsed into this node.
|
| Constructor and Description |
|---|
AttributesNode()
Create an empty ignore node with no rules.
|
AttributesNode(java.util.List<AttributesRule> rules)
Create an ignore node with given rules.
|
| Modifier and Type | Method and Description |
|---|---|
private static java.io.BufferedReader |
asReader(java.io.InputStream in) |
java.util.List<AttributesRule> |
getRules()
Getter for the field
rules. |
void |
parse(java.io.InputStream in)
Parse files according to gitattribute standards.
|
private final java.util.List<AttributesRule> rules
public AttributesNode()
public AttributesNode(java.util.List<AttributesRule> rules)
rules - list of rules.public void parse(java.io.InputStream in)
throws java.io.IOException
in - input stream holding the standard ignore format. The caller is
responsible for closing the stream.java.io.IOException - Error thrown when reading an ignore file.private static java.io.BufferedReader asReader(java.io.InputStream in)
public java.util.List<AttributesRule> getRules()
rules.