public class ArchiveEntryDocument extends Document
Document.Type
Constructor and Description |
---|
ArchiveEntryDocument(Path path,
byte[] contents)
Creates an Archive entry.
|
Modifier and Type | Method and Description |
---|---|
InputStream |
inputStream()
Streams the document's contents.
|
boolean |
isDirectory()
Determines if this Document is a directory type.
|
SortedSet<Document> |
listChildren()
Gets a sorted set of Documents that are children of this document.
|
Reader |
reader()
Reads the contents of this document.
|
public ArchiveEntryDocument(Path path, byte[] contents)
path
- The path for the entry.contents
- the contents of the entry.public InputStream inputStream() throws IOException
Document
inputStream
in class Document
IOException
- when stream could not be openedpublic boolean isDirectory()
Document
isDirectory
in class Document
true
if this is a directory.public SortedSet<Document> listChildren()
Document
listChildren
in class Document
public Reader reader() throws IOException
Document
reader
in class Document
Reader
not nullIOException
- if this document cannot be read
composite archiveCopyright © 2006–2024 Apache Software Foundation. All rights reserved.