public class GenerateOnErrorFileEntry extends BaseFileEntry
| Constructor and Description |
|---|
GenerateOnErrorFileEntry(FileSystem fileSystem,
DirectoryEntry parent,
FileEntry delegateEntry,
FileEntry generatorEntry)
|
| Modifier and Type | Method and Description |
|---|---|
InputStream |
getInputStream() |
long |
getLastModified() |
long |
getSize() |
equals, getFileSystem, getName, getParent, hashCode, toPath, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetFileSystem, getName, getParent, toPathpublic GenerateOnErrorFileEntry(FileSystem fileSystem, DirectoryEntry parent, FileEntry delegateEntry, FileEntry generatorEntry)
FileEntry in the specified directory of the specified file system that delegates to another
FileEntry but can (and will) fall back to another FileEntry if the primary delegate has an
error.fileSystem - The file system.parent - The parent directory.delegateEntry - The primary delegate entry.generatorEntry - The delegate entry that is more costly to use and therefore should only be used if the
primary delegate has an error.public long getLastModified()
throws IOException
IOExceptionpublic long getSize()
throws IOException
IOExceptionpublic InputStream getInputStream() throws IOException
IOExceptionCopyright © 2009–2022 MojoHaus. All rights reserved.