Class MonolithicFileDocument

java.lang.Object
org.apache.rat.document.impl.AbstractMonolithicDocument
org.apache.rat.document.impl.MonolithicFileDocument
All Implemented Interfaces:
Document

public class MonolithicFileDocument extends AbstractMonolithicDocument
  • Constructor Details

    • MonolithicFileDocument

      public MonolithicFileDocument(File file)
  • Method Details

    • newInstance

      public static Document newInstance(URL url)
      Parameters:
      url - The document is read from the given URL.
      Returns:
      Creates and returns a new instance.
    • reader

      public Reader reader() throws IOException
      Description copied from interface: Document
      Reads the contents of this document.
      Returns:
      Reader not null
      Throws:
      IOException - if this document cannot be read
      CompositeDocumentException - if this document can only be read as a composite archive
    • inputStream

      public InputStream inputStream() throws IOException
      Description copied from interface: Document
      Streams the document's contents.
      Returns:
      not null
      Throws:
      IOException - when stream could not be opened