class URLFile extends InputStreamFile<URLStorageFactory>
nameStart, path, storageFactory
EXCLUSIVE_FILE_LOCK, EXCLUSIVE_FILE_LOCK_NOT_AVAILABLE, NO_FILE_LOCK_SUPPORT
Modifier | Constructor and Description |
---|---|
(package private) |
URLFile(URLFile dir,
java.lang.String name) |
(package private) |
URLFile(URLStorageFactory storageFactory,
java.lang.String path) |
private |
URLFile(URLStorageFactory storageFactory,
java.lang.String child,
int pathLen) |
(package private) |
URLFile(URLStorageFactory 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.
|
canWrite, createNewFile, delete, deleteAll, equals, getCanonicalPath, getExclusiveFileLock, getName, getOutputStream, getOutputStream, getParentDir, getPath, getRandomAccessFile, hashCode, isDirectory, limitAccessToOwner, list, mkdir, mkdirs, releaseExclusiveFileLock, renameTo, setReadOnly, toString
URLFile(URLStorageFactory storageFactory, java.lang.String path)
URLFile(URLStorageFactory storageFactory, java.lang.String parent, java.lang.String name)
URLFile(URLFile dir, java.lang.String name)
private URLFile(URLStorageFactory storageFactory, java.lang.String child, int pathLen)
public boolean exists()
exists
in interface StorageFile
exists
in class InputStreamFile<URLStorageFactory>
StorageFile getParentDir(int pathLen)
getParentDir
in class InputStreamFile<URLStorageFactory>
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<URLStorageFactory>
java.io.FileNotFoundException
- if the file is not found.Apache Derby V10.13 Internals - Copyright © 2004,2016 The Apache Software Foundation. All Rights Reserved.