StorageFile
class JarDBFile extends InputStreamFile<JarStorageFactory>
nameStart, path, storageFactory
EXCLUSIVE_FILE_LOCK, EXCLUSIVE_FILE_LOCK_NOT_AVAILABLE, NO_FILE_LOCK_SUPPORT
Modifier | Constructor | Description |
---|---|---|
(package private) |
JarDBFile(JarDBFile dir,
java.lang.String name) |
|
(package private) |
JarDBFile(JarStorageFactory storageFactory,
java.lang.String path) |
|
private |
JarDBFile(JarStorageFactory storageFactory,
java.lang.String child,
int pathLen) |
|
(package private) |
JarDBFile(JarStorageFactory storageFactory,
java.lang.String parent,
java.lang.String name) |
Modifier and Type | Method | Description |
---|---|---|
boolean |
exists() |
Tests whether the named file exists.
|
private java.util.zip.ZipEntry |
getEntry() |
|
java.io.InputStream |
getInputStream() |
Creates an input stream from a file name.
|
(package private) StorageFile |
getParentDir(int pathLen) |
Get the name of the parent directory if this name includes a parent.
|
java.lang.String |
toString() |
Get the file name for diagnostic purposes.
|
canWrite, createNewFile, delete, deleteAll, equals, getCanonicalPath, getExclusiveFileLock, getName, getOutputStream, getOutputStream, getParentDir, getPath, getRandomAccessFile, hashCode, isDirectory, limitAccessToOwner, list, mkdir, mkdirs, releaseExclusiveFileLock, renameTo, setReadOnly
JarDBFile(JarStorageFactory storageFactory, java.lang.String path)
JarDBFile(JarStorageFactory storageFactory, java.lang.String parent, java.lang.String name)
JarDBFile(JarDBFile dir, java.lang.String name)
private JarDBFile(JarStorageFactory storageFactory, java.lang.String child, int pathLen)
public boolean exists()
exists
in interface StorageFile
exists
in class InputStreamFile<JarStorageFactory>
private java.util.zip.ZipEntry getEntry()
StorageFile getParentDir(int pathLen)
getParentDir
in class InputStreamFile<JarStorageFactory>
pathLen
- the length of the parent's path name.public java.io.InputStream getInputStream() throws java.io.FileNotFoundException
getInputStream
in interface StorageFile
getInputStream
in class InputStreamFile<JarStorageFactory>
java.io.FileNotFoundException
- if the file is not found.public java.lang.String toString()
toString
in class InputStreamFile<JarStorageFactory>
Apache Derby V10.14 Internals - Copyright © 2004,2018 The Apache Software Foundation. All Rights Reserved.