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
-
Method Summary
Modifier and TypeMethodDescriptionStreams the document's contents.static Document
newInstance(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:Document
Reads the contents of this document.- Returns:
Reader
not 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:Document
Streams the document's contents.- Returns:
- not null
- Throws:
IOException
- when stream could not be opened
-