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

All Superinterfaces:
OpenMISSerializable, java.io.Serializable
All Known Implementing Classes:
MemoryFile

public interface OpenMISFile
extends OpenMISSerializable

Title: OpenMobileIS project source
Description: base file for virtual file system

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

Method Summary
 java.lang.String getFileCompleteName()
          return the complete file name of the file (ie: path+separator+name)
 byte[] getFileData()
          return file data as a byte array
 java.io.InputStream getFileDataStream()
          return file data as a stream
 long getFileDate()
          return file last modification date
 int getFileLength()
          return the file data length
 java.lang.String getFileName()
          return the name of the file.
 java.lang.String getFilePath()
          return the path of the file without the file name.
 void setFileDate(java.util.Date date)
          set file last modification date
 

Method Detail

getFileName

public java.lang.String getFileName()
return the name of the file. The name doesnot contain file path.


getFileDataStream

public java.io.InputStream getFileDataStream()
return file data as a stream


getFileData

public byte[] getFileData()
return file data as a byte array


getFileLength

public int getFileLength()
return the file data length


getFileCompleteName

public java.lang.String getFileCompleteName()
return the complete file name of the file (ie: path+separator+name)


getFilePath

public java.lang.String getFilePath()
return the path of the file without the file name. The path end with system separator.


getFileDate

public long getFileDate()
return file last modification date


setFileDate

public void setFileDate(java.util.Date date)
set file last modification date



Copyright 2006 OpenMobileIS. All Rights Reserved.