|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.metanotion.io.s3.S3FileSystem
public final class S3FileSystem
FileSystem implementation to use Amazon's S3 service.
| Constructor Summary | |
|---|---|
S3FileSystem()
|
|
| Method Summary | |
|---|---|
void |
addListener(FileSystemListener fsl)
Add a listener to this file system. |
void |
addListener(FileSystemListener fsl,
File root)
Add a listener to this file system. |
void |
addListener(FileSystemListener fsl,
File root,
boolean recursive)
Add a listener to this file system. |
File |
getFile(String url)
Get the file corresponding to a url. |
File |
getRoot()
Get the root File object of this file system. |
InputStream |
openInput(File f)
Get an input stream to read a file. |
OutputStream |
openOutput(File f)
Get an output stream to write a file. |
RandomAccess |
openRandomAccess(File f)
Open a file for reading and writing. |
void |
removeListener(FileSystemListener fsl)
Remove a listener to this file system. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public S3FileSystem()
| Method Detail |
|---|
public File getRoot()
FileSystem
getRoot in interface FileSystempublic File getFile(String url)
FileSystem
getFile in interface FileSystemurl - filename of the file or directory.
public InputStream openInput(File f)
FileSystem
openInput in interface FileSystemf - File to open for reading.
public OutputStream openOutput(File f)
FileSystem
openOutput in interface FileSystemf - File to open for writing.
public RandomAccess openRandomAccess(File f)
FileSystem
openRandomAccess in interface FileSystemf - File to open.
public void addListener(FileSystemListener fsl)
FileSystem
addListener in interface FileSystemfsl - FileSystemListner to call back.
public void addListener(FileSystemListener fsl,
File root)
FileSystem
addListener in interface FileSystemfsl - FileSystemListner to call backroot - File or directory to specifically watch.
public void addListener(FileSystemListener fsl,
File root,
boolean recursive)
FileSystem
addListener in interface FileSystemfsl - FileSystemListner to call backroot - File or directory to specifically watch.recursive - If true, send events for all children of this file, if false, only events on this file.public void removeListener(FileSystemListener fsl)
FileSystem
removeListener in interface FileSystemfsl - FileSystemListner to remove.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||