public class DiskFileEntry extends BaseFileEntry
File on a local disk.| Constructor and Description |
|---|
DiskFileEntry(FileSystem fileSystem,
DirectoryEntry parent,
File file)
Creates a new instance in the specified parent directory of the specified file system that backs the supplied
file named with
File.getName(). |
DiskFileEntry(FileSystem fileSystem,
DirectoryEntry parent,
String name,
File file)
Creates a new instance in the specified parent directory of the specified file system that backs the supplied
file named with the supplied name.
|
| 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 DiskFileEntry(FileSystem fileSystem, DirectoryEntry parent, File file)
File.getName().fileSystem - the file system.parent - the parent directory.file - the backing file.public DiskFileEntry(FileSystem fileSystem, DirectoryEntry parent, String name, File file)
fileSystem - the file system.parent - the parent directory.name - the name of the entry.file - the backing file.public long getLastModified()
public long getSize()
public InputStream getInputStream() throws IOException
IOExceptionCopyright © 2009–2022 MojoHaus. All rights reserved.