|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.are.platform.impl.IBMiFileSystem
public class IBMiFileSystem
The IBMiFileSystem
interface implements file system operations that must
be implemented for any platform where ARE runs.
Field Summary | |
---|---|
static java.lang.String |
COPYRIGHT
Copyright for class bytecode |
Method Summary | |
---|---|
java.io.Reader |
createFileReader(java.io.File theFile,
java.util.Map readerOptions)
Create a file reader with any platform specific settings required. |
java.io.Writer |
createFileWriter(java.io.File theFile,
java.util.Map writerOptions)
Create a file writer with any platform specific settings required. |
boolean |
createSymbolicLink(java.io.File linkTarget,
java.io.File linkName)
Creates a symbolic link with the specified name and target |
FileTypeIdentifier |
fileTypeIdentifier()
Retrieves the platform specific file type identifier |
java.io.File |
getSymbolicLinkTarget(java.io.File symbolicLinkFile)
Retrieves the true target of the symbolic link |
boolean |
isDirectory(java.io.File theFile)
Determines if the type for the specified name is a directory |
boolean |
isFile(java.io.File theFile)
Determines if the type for the specified name is a file |
boolean |
isFileSystemCaseSensitive()
Determines if path/file names in the file system are case sensitive. |
boolean |
isFileSystemCaseSensitive(java.lang.String fileSystemName)
Determines if path/file names in the file system are case sensitive. |
boolean |
isSymbolicLink(java.io.File theFile)
Determines if the type for the specified name is a symbolic link |
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 COPYRIGHT
Method Detail |
---|
public boolean isDirectory(java.io.File theFile)
isDirectory
in interface FileSystem
theFile
- The fully qualified path and name of the file
true
if the file is a directory, false
if it is notpublic boolean isFile(java.io.File theFile)
isFile
in interface FileSystem
theFile
- The fully qualified path and name of the file
true
if the file is a file, false
if it is notpublic boolean isSymbolicLink(java.io.File theFile)
isSymbolicLink
in interface FileSystem
theFile
- The fully qualified path and name of the file
true
if the file is a symbolic link, false
if it is notpublic java.io.File getSymbolicLinkTarget(java.io.File symbolicLinkFile)
getSymbolicLinkTarget
in interface FileSystem
symbolicLinkFile
- The symbolic link file
public boolean createSymbolicLink(java.io.File linkTarget, java.io.File linkName) throws java.lang.Exception
createSymbolicLink
in interface FileSystem
linkTarget
- The target of the symbolic linklinkName
- The symbolic link name
true
if the symbolic link was created, false
if it was not
java.lang.Exception
- If an error occurred while creating the symbolic linkpublic FileTypeIdentifier fileTypeIdentifier()
fileTypeIdentifier
in interface FileSystem
public boolean isFileSystemCaseSensitive()
isFileSystemCaseSensitive
in interface FileSystem
true
if path/file names are case sensitive, false
if they are notpublic boolean isFileSystemCaseSensitive(java.lang.String fileSystemName)
isFileSystemCaseSensitive
in interface FileSystem
fileSystemName
- The name of the file system.
true
if path/file names are case sensitive, false
if they are notpublic java.io.Reader createFileReader(java.io.File theFile, java.util.Map readerOptions) throws java.lang.Exception
createFileReader
in interface FileSystem
theFile
- The file to be readreaderOptions
- Map of requested reader specific settings. The contents
of this map may contain requests for platform specific settings.
java.io.Reader
object for reading the contents of the file
java.lang.Exception
- If the reader cannot be created.public java.io.Writer createFileWriter(java.io.File theFile, java.util.Map writerOptions) throws java.lang.Exception
createFileWriter
in interface FileSystem
theFile
- The file to be writtenwriterOptions
- Map of requested writer specific settings. The contents
of this map may contain requests for platform specific settings.
java.io.Writer
object for writing the contents of the file
java.lang.Exception
- If the writer cannot be created.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |