class CPFile extends InputStreamFile
Modifier and Type | Field and Description |
---|---|
private CPStorageFactory |
storageFactory |
nameStart, path
EXCLUSIVE_FILE_LOCK, EXCLUSIVE_FILE_LOCK_NOT_AVAILABLE, NO_FILE_LOCK_SUPPORT
Modifier | Constructor and Description |
---|---|
(package private) |
CPFile(CPFile dir,
java.lang.String name) |
(package private) |
CPFile(CPStorageFactory storageFactory,
java.lang.String path) |
private |
CPFile(CPStorageFactory storageFactory,
java.lang.String child,
int pathLen) |
(package private) |
CPFile(CPStorageFactory storageFactory,
java.lang.String parent,
java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
boolean |
exists()
Tests whether the named file exists.
|
java.io.InputStream |
getInputStream()
Creates an input stream from a file name.
|
(package private) StorageFile |
getParentDir(int pathLen)
Get the parent of this file.
|
java.net.URL |
getURL()
Return a URL for this file (resource).
|
canWrite, createNewFile, delete, deleteAll, equals, getCanonicalPath, getExclusiveFileLock, getName, getOutputStream, getOutputStream, getParentDir, getPath, getRandomAccessFile, hashCode, isDirectory, length, limitAccessToOwner, list, mkdir, mkdirs, releaseExclusiveFileLock, renameTo, setReadOnly, toString
private final CPStorageFactory storageFactory
CPFile(CPStorageFactory storageFactory, java.lang.String path)
CPFile(CPStorageFactory storageFactory, java.lang.String parent, java.lang.String name)
CPFile(CPFile dir, java.lang.String name)
private CPFile(CPStorageFactory storageFactory, java.lang.String child, int pathLen)
public boolean exists()
exists
in interface StorageFile
exists
in class InputStreamFile
StorageFile getParentDir(int pathLen)
getParentDir
in class InputStreamFile
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
java.io.FileNotFoundException
- if the file is not found.public java.net.URL getURL()
getURL
in interface StorageFile
getURL
in class InputStreamFile
StorageFile.getURL()
Apache Derby V10.10 Internals - Copyright © 2004,2013 The Apache Software Foundation. All Rights Reserved.