Package org.apache.rat.document.impl
Class FileDocument
java.lang.Object
org.apache.rat.document.impl.FileDocument
- All Implemented Interfaces:
Document
Document wrapping a file of undetermined composition.
-
Constructor Details
-
FileDocument
-
-
Method Details
-
isComposite
public boolean isComposite()Description copied from interface:Document
Is this a composite document?- Specified by:
isComposite
in interfaceDocument
- Returns:
- true if composite, false otherwise
-
reader
Description copied from interface:Document
Reads the contents of this document.- Specified by:
reader
in interfaceDocument
- Returns:
Reader
not null- Throws:
IOException
- if this document cannot be readCompositeDocumentException
- if this document can only be read as a composite archive
-
getName
-
getMetaData
Description copied from interface:Document
Gets data describing this resource.- Specified by:
getMetaData
in interfaceDocument
- Returns:
- not null
-
inputStream
Description copied from interface:Document
Streams the document's contents.- Specified by:
inputStream
in interfaceDocument
- Returns:
- not null
- Throws:
IOException
- when stream could not be opened
-
toString
Representations suitable for logging.
-