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
public class MonolithicFileDocument
- extends AbstractMonolithicDocument
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MonolithicFileDocument
public MonolithicFileDocument(File file)
newInstance
public static Document newInstance(URL url)
- Creates a new instance. The document is read from the
given URL.
reader
public Reader reader()
throws IOException
- Description copied from interface:
Document
- Reads the content 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
Copyright © 2006-2011 Apache Software Foundation. All Rights Reserved.