|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.h2.store.fs.FileSystem
org.h2.store.fs.FileSystemWrapper
org.h2.store.fs.FileSystemSplit
public class FileSystemSplit
A file system that may split files into multiple smaller files. (required for a FAT32 because it only support files up to 2 GB).
| Field Summary | |
|---|---|
static java.lang.String |
PREFIX
The prefix to use for this file system. |
| Constructor Summary | |
|---|---|
FileSystemSplit()
|
|
| Method Summary | |
|---|---|
void |
delete(java.lang.String fileName)
Delete a file. |
long |
getLastModified(java.lang.String fileName)
Get the last modified date of a file |
protected java.lang.String |
getPrefix()
Get the prefix for this file system. |
long |
length(java.lang.String fileName)
Get the length of a file. |
java.lang.String[] |
listFiles(java.lang.String directory)
List the files in the given directory. |
java.io.InputStream |
openFileInputStream(java.lang.String fileName)
Create an input stream to read from the file. |
FileObject |
openFileObject(java.lang.String fileName,
java.lang.String mode)
Open a random access file object. |
java.io.OutputStream |
openFileOutputStream(java.lang.String fileName,
boolean append)
Create an output stream to write into the file. |
void |
rename(java.lang.String oldName,
java.lang.String newName)
Rename a file if this is allowed. |
boolean |
setReadOnly(java.lang.String fileName)
Disable the ability to write. |
boolean |
tryDelete(java.lang.String fileName)
Try to delete a file. |
java.lang.String |
unwrap(java.lang.String fileName)
Get the unwrapped file name (without wrapper prefixes if wrapping / delegating file systems are used). |
| Methods inherited from class org.h2.store.fs.FileSystemWrapper |
|---|
accepts, canWrite, createDirs, createNewFile, createTempFile, deleteRecursive, exists, fileStartsWith, getCanonicalPath, getFileName, getParent, isAbsolute, isDirectory, isReadOnly |
| Methods inherited from class org.h2.store.fs.FileSystem |
|---|
getInstance, getNextTempFileNamePart, register, unregister |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String PREFIX
| Constructor Detail |
|---|
public FileSystemSplit()
| Method Detail |
|---|
public boolean setReadOnly(java.lang.String fileName)
FileSystem
setReadOnly in class FileSystemWrapperfileName - the file name
public void delete(java.lang.String fileName)
FileSystem
delete in class FileSystemWrapperfileName - the file namepublic long getLastModified(java.lang.String fileName)
FileSystem
getLastModified in class FileSystemWrapperfileName - the file name
public long length(java.lang.String fileName)
FileSystem
length in class FileSystemWrapperfileName - the file name
public java.lang.String[] listFiles(java.lang.String directory)
FileSystem
listFiles in class FileSystemWrapperdirectory - the directory
public java.io.InputStream openFileInputStream(java.lang.String fileName)
throws java.io.IOException
FileSystem
openFileInputStream in class FileSystemWrapperfileName - the file name
java.io.IOException
public FileObject openFileObject(java.lang.String fileName,
java.lang.String mode)
throws java.io.IOException
FileSystem
openFileObject in class FileSystemWrapperfileName - the file namemode - the access mode. Supported are r, rw, rws, rwd
java.io.IOException
public java.io.OutputStream openFileOutputStream(java.lang.String fileName,
boolean append)
FileSystem
openFileOutputStream in class FileSystemWrapperfileName - the file nameappend - if true, the file will grow, if false, the file will be
truncated first
public void rename(java.lang.String oldName,
java.lang.String newName)
FileSystem
rename in class FileSystemWrapperoldName - the old fully qualified file namenewName - the new fully qualified file namepublic boolean tryDelete(java.lang.String fileName)
FileSystem
tryDelete in class FileSystemWrapperfileName - the file name
public java.lang.String unwrap(java.lang.String fileName)
FileSystem
unwrap in class FileSystemWrapperfileName - the file name
protected java.lang.String getPrefix()
FileSystemWrapper
getPrefix in class FileSystemWrapper
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||