|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface FileSystem
Abstract class for support of various file system access implementations.
| Method Summary | |
|---|---|
java.util.Vector |
getRoots()
Get file system roots. |
boolean |
isDirectory(java.lang.String filename)
Check if a file is a directory |
java.util.Vector |
listFiles(java.lang.String path)
List all files in a directory. |
FileSystemConnection |
openConnectionToFile(java.lang.String fileName)
|
byte[] |
readFile(java.lang.String filename)
Read file from disk/memory card/flash. |
| Method Detail |
|---|
byte[] readFile(java.lang.String filename)
throws java.io.IOException
filename - fully-qualified file path (following "file:///" qualifier)
java.io.IOException - if an exception occurs
FileSystemConnection openConnectionToFile(java.lang.String fileName)
throws java.io.IOException
java.io.IOException
boolean isDirectory(java.lang.String filename)
throws java.io.IOException
filename - file to check
java.io.IOException
java.util.Vector getRoots()
throws java.io.IOException
java.io.IOException
java.util.Vector listFiles(java.lang.String path)
throws java.io.IOException
path - path to list, null to list root
java.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||