|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.derby.impl.io.InputStreamFile
org.apache.derby.impl.io.JarDBFile
class JarDBFile
This class provides a jar file based implementation of the StorageFile interface. It is used by the database engine to access persistent data and transaction logs under the jar subsubprotocol.
| Field Summary | |
|---|---|
private JarStorageFactory |
storageFactory
|
| Fields inherited from class org.apache.derby.impl.io.InputStreamFile |
|---|
nameStart, path |
| Fields inherited from interface org.apache.derby.io.StorageFile |
|---|
EXCLUSIVE_FILE_LOCK, EXCLUSIVE_FILE_LOCK_NOT_AVAILABLE, NO_FILE_LOCK_SUPPORT |
| Constructor Summary | |
|---|---|
(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)
|
| Method Summary | |
|---|---|
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.net.URL |
getURL()
Return a URL for this file (resource). |
long |
length()
Returns the length of the named file if it is not a directory. |
java.lang.String |
toString()
Get the file name for diagnostic purposes. |
| Methods inherited from class org.apache.derby.impl.io.InputStreamFile |
|---|
canWrite, createNewFile, delete, deleteAll, equals, getCanonicalPath, getExclusiveFileLock, getName, getOutputStream, getOutputStream, getParentDir, getPath, getRandomAccessFile, hashCode, isDirectory, limitAccessToOwner, list, mkdir, mkdirs, releaseExclusiveFileLock, renameTo, setReadOnly |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private final JarStorageFactory storageFactory
| Constructor Detail |
|---|
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)
| Method Detail |
|---|
public boolean exists()
exists in interface StorageFileexists in class InputStreamFileprivate java.util.zip.ZipEntry getEntry()
public long length()
length in interface StorageFilelength in class InputStreamFileStorageFile getParentDir(int pathLen)
getParentDir in class InputStreamFilepathLen - the length of the parent's path name.
public java.io.InputStream getInputStream()
throws java.io.FileNotFoundException
getInputStream in interface StorageFilegetInputStream in class InputStreamFilejava.io.FileNotFoundException - if the file is not found.public java.lang.String toString()
toString in class InputStreamFile
public java.net.URL getURL()
throws java.net.MalformedURLException
getURL in interface StorageFilegetURL in class InputStreamFilejava.net.MalformedURLException - File cannot be represented as a URL.StorageFile.getURL()
|
Built on Wed 2013-06-12 15:21:56+0000, from revision ??? | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||