org.openmobileis.synchro.openmsp.server.util
Interface FileSystem

All Superinterfaces:
java.io.Serializable
All Known Implementing Classes:
MemoryFileSystem

public interface FileSystem
extends java.io.Serializable

Title: OpenMobileIS project source
Description: define a virtual file system to manipulate file in memory.

Since:
JDK 1.1
Version:
1.0.
Author:
Philippe Delrieu

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.
 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
 

Method Detail

getFileCount

public int getFileCount()

getFile

public OpenMISFile getFile(java.lang.String completefileName)
return null if not found. Specify the the completeFileName


addFile

public void addFile(OpenMISFile file)
             throws java.io.IOException
Extends this method to add your own file management before adding a file. call super.addFile to add the file to the existing file memory management.

Throws:
java.io.IOException

getFileList

public OpenMISFile[] getFileList()

saveToDisk

public void saveToDisk(java.lang.String beginPath)
                throws java.io.IOException
save all manager file to disk using beginpath for base file repository

Throws:
java.io.IOException

addAll

public void addAll(FileSystem fileSystem)
            throws java.io.IOException
Throws:
java.io.IOException

clear

public void clear()
clear all file in the file system.


removeFile

public void removeFile(java.lang.String completefileName)


Copyright 2006 OpenMobileIS. All Rights Reserved.