Package org.apache.rat.document.impl
Class MonolithicFileDocument
java.lang.Object
org.apache.rat.document.impl.AbstractMonolithicDocument
org.apache.rat.document.impl.MonolithicFileDocument
- All Implemented Interfaces:
Document
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionStreams the document's contents.static DocumentnewInstance(URL url)reader()Reads the contents of this document.Methods inherited from class org.apache.rat.document.impl.AbstractMonolithicDocument
getMetaData, getName, isComposite
-
Constructor Details
-
MonolithicFileDocument
-
-
Method Details
-
newInstance
- Parameters:
url- The document is read from the given URL.- Returns:
- Creates and returns a new instance.
-
reader
Description copied from interface:DocumentReads the contents of this document.- Returns:
Readernot null- Throws:
IOException- if this document cannot be readCompositeDocumentException- if this document can only be read as a composite archive
-
inputStream
Description copied from interface:DocumentStreams the document's contents.- Returns:
- not null
- Throws:
IOException- when stream could not be opened
-