|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface FileSystem
The FileSystem
interface defines 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 |
Field Detail |
---|
static final java.lang.String COPYRIGHT
Method Detail |
---|
boolean isSymbolicLink(java.io.File theFile)
theFile
- The fully qualified path and name of the file
true
if the file is a symbolic link, false
if it is notboolean isFile(java.io.File theFile)
theFile
- The fully qualified path and name of the file
true
if the file is a file, false
if it is notboolean isDirectory(java.io.File theFile)
theFile
- The fully qualified path and name of the file
true
if the file is a directory, false
if it is notjava.io.File getSymbolicLinkTarget(java.io.File symbolicLinkFile)
symbolicLinkFile
- The symbolic link file
boolean createSymbolicLink(java.io.File linkTarget, java.io.File linkName) throws java.lang.Exception
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 linkFileTypeIdentifier fileTypeIdentifier()
boolean isFileSystemCaseSensitive()
true
if path/file names are case sensitive, false
if they are notboolean isFileSystemCaseSensitive(java.lang.String fileSystemName)
fileSystemName
- The name of the file system.
true
if path/file names are case sensitive, false
if they are notjava.io.Reader createFileReader(java.io.File theFile, java.util.Map readerOptions) throws java.lang.Exception
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.java.io.Writer createFileWriter(java.io.File theFile, java.util.Map writerOptions) throws java.lang.Exception
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 |