Class IgnoredDocument

java.lang.Object
org.apache.rat.api.Document
org.apache.rat.document.IgnoredDocument
All Implemented Interfaces:
Comparable<Document>

public class IgnoredDocument extends Document
Document wrapping a File object that is ignored by rule.
  • Constructor Details

    • IgnoredDocument

      public IgnoredDocument(DocumentName basedir, File file, DocumentNameMatcher nameMatcher)
      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 class Document
      Returns:
      true if this is a directory.
    • listChildren

      public SortedSet<Document> listChildren()
      Description copied from class: Document
      Gets a sorted set of documents that are children of this document.
      Specified by:
      listChildren in class Document
      Returns:
      A sorted set of child Documents. May be empty.
    • inputStream

      public InputStream inputStream() throws IOException
      Description copied from class: Document
      Streams the document's contents.
      Specified by:
      inputStream in class Document
      Returns:
      a non-null input stream of the document.
      Throws:
      IOException - when stream could not be opened.