|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openmobileis.synchro.openmsp.server.util.MemoryFileSystem
Title: OpenMobileIS project source
Description: virtual file system in memory.
Constructor Summary | |
MemoryFileSystem()
|
|
MemoryFileSystem(OpenMISFile[] filelist)
|
|
MemoryFileSystem(java.util.zip.ZipInputStream zipFile)
|
Method Summary | |
void |
addAll(FileSystem fileSystem)
|
void |
addFile(OpenMISFile file)
Extends this method to add your own file management before adding a file. |
void |
clear()
clear all file in the file system. |
protected OpenMISFile |
createCyberFile(java.lang.String completeName,
java.io.InputStream input)
extends this methods to create the rigth type of OpenMISFile with the file system is created using a ZIP Stream |
OpenMISFile |
getFile(java.lang.String completefileName)
return null if not found. |
int |
getFileCount()
|
OpenMISFile[] |
getFileList()
|
void |
removeFile(java.lang.String completefileName)
|
void |
saveToDisk(java.lang.String beginPath)
save all manager file to disk using beginpath for base file repository |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public MemoryFileSystem()
public MemoryFileSystem(java.util.zip.ZipInputStream zipFile) throws java.io.IOException
public MemoryFileSystem(OpenMISFile[] filelist)
Method Detail |
protected OpenMISFile createCyberFile(java.lang.String completeName, java.io.InputStream input) throws java.io.IOException
java.io.IOException
public void addAll(FileSystem fileSystem) throws java.io.IOException
addAll
in interface FileSystem
java.io.IOException
public OpenMISFile getFile(java.lang.String completefileName)
getFile
in interface FileSystem
public void addFile(OpenMISFile file) throws java.io.IOException
addFile
in interface FileSystem
java.io.IOException
public OpenMISFile[] getFileList()
getFileList
in interface FileSystem
public void saveToDisk(java.lang.String beginPath) throws java.io.IOException
saveToDisk
in interface FileSystem
java.io.IOException
public int getFileCount()
getFileCount
in interface FileSystem
public void clear()
clear
in interface FileSystem
public void removeFile(java.lang.String completefileName)
removeFile
in interface FileSystem
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |