|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.h2.store.fs.FilePath
org.h2.store.fs.FilePathWrapper
org.h2.store.fs.FilePathSplit
public class FilePathSplit
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 |
|---|
| Fields inherited from class org.h2.store.fs.FilePath |
|---|
name |
| Constructor Summary | |
|---|---|
FilePathSplit()
|
|
| Method Summary | |
|---|---|
void |
delete()
Delete a file or directory if it exists. |
protected java.lang.String |
getPrefix()
|
java.lang.String |
getScheme()
Get the scheme (prefix) for this file provider. |
long |
lastModified()
Get the last modified date of a file |
void |
moveTo(FilePath path)
Rename a file if this is allowed. |
java.util.ArrayList<FilePath> |
newDirectoryStream()
List the files and directories in the given directory. |
java.io.InputStream |
newInputStream()
Create an input stream to read from the file. |
java.io.OutputStream |
newOutputStream(boolean append)
Create an output stream to write into the file. |
java.nio.channels.FileChannel |
open(java.lang.String mode)
Open a random access file object. |
boolean |
setReadOnly()
Disable the ability to write. |
long |
size()
Get the size of a file in bytes |
FilePath |
unwrap(java.lang.String fileName)
Get the base path for the given wrapped path. |
| Methods inherited from class org.h2.store.fs.FilePathWrapper |
|---|
canWrite, createDirectory, createFile, createTempFile, exists, getBase, getParent, getPath, isAbsolute, isDirectory, toRealPath, unwrap, wrap |
| Methods inherited from class org.h2.store.fs.FilePath |
|---|
get, getName, getNextTempFileNamePart, register, toString, unregister |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public FilePathSplit()
| Method Detail |
|---|
protected java.lang.String getPrefix()
getPrefix in class FilePathWrapperpublic FilePath unwrap(java.lang.String fileName)
FilePathWrapper
unwrap in class FilePathWrapperfileName - the path including the scheme prefix
public boolean setReadOnly()
FilePath
setReadOnly in class FilePathWrapperpublic void delete()
FilePath
delete in class FilePathWrapperpublic long lastModified()
FilePath
lastModified in class FilePathWrapperpublic long size()
FilePath
size in class FilePathWrapperpublic java.util.ArrayList<FilePath> newDirectoryStream()
FilePath
newDirectoryStream in class FilePathWrapper
public java.io.InputStream newInputStream()
throws java.io.IOException
FilePath
newInputStream in class FilePathWrapperjava.io.IOException
public java.nio.channels.FileChannel open(java.lang.String mode)
throws java.io.IOException
FilePath
open in class FilePathWrappermode - the access mode. Supported are r, rw, rws, rwd
java.io.IOExceptionpublic java.io.OutputStream newOutputStream(boolean append)
FilePath
newOutputStream in class FilePathWrapperappend - if true, the file will grow, if false, the file will be
truncated first
public void moveTo(FilePath path)
FilePath
moveTo in class FilePathWrapperpath - the new fully qualified file namepublic java.lang.String getScheme()
FilePathjava.nio.file.spi.FileSystemProvider.getScheme.
getScheme in class FilePath
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||