Package org.apache.rat.document
Class IgnoredDocument
java.lang.Object
org.apache.rat.api.Document
org.apache.rat.document.IgnoredDocument
- All Implemented Interfaces:
Comparable<Document>
Document wrapping a File object that is ignored by rule.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.rat.api.Document
Document.Type
-
Field Summary
Fields inherited from class org.apache.rat.api.Document
name, nameMatcher
-
Constructor Summary
ConstructorsConstructorDescriptionIgnoredDocument
(DocumentName basedir, File file, DocumentNameMatcher nameMatcher) Creates a File document. -
Method Summary
Modifier and TypeMethodDescriptionStreams the document's contents.boolean
Determines if this document is a directory type.Gets a sorted set of documents that are children of this document.Methods inherited from class org.apache.rat.api.Document
compareTo, equals, getMetaData, getName, getNameMatcher, hashCode, isIgnored, reader, toString
-
Constructor Details
-
IgnoredDocument
Creates a File document.- Parameters:
basedir
- the base directory for this document.file
- the file to wrap.nameMatcher
- the path matcher to filter files/directories with.
-
-
Method Details
-
isDirectory
public boolean isDirectory()Description copied from class:Document
Determines if this document is a directory type.- Specified by:
isDirectory
in classDocument
- Returns:
true
if this is a directory.
-
listChildren
Description copied from class:Document
Gets a sorted set of documents that are children of this document.- Specified by:
listChildren
in classDocument
- Returns:
- A sorted set of child Documents. May be empty.
-
inputStream
Description copied from class:Document
Streams the document's contents.- Specified by:
inputStream
in classDocument
- Returns:
- a non-null input stream of the document.
- Throws:
IOException
- when stream could not be opened.
-