Main Page | Packages | Class Hierarchy | Class List | Directories | File List | Class Members | Related Pages

org.openmobileis.synchro.openmsp.server.util.MemoryFile Class Reference

Inheritance diagram for org.openmobileis.synchro.openmsp.server.util.MemoryFile:

org.openmobileis.synchro.openmsp.server.util.OpenMISFile org.openmobileis.common.util.OpenMISSerializable org.openmobileis.synchro.openmsp.server.util.ZipEntryMemoryFile List of all members.

Detailed Description

Title: OpenMobileIS project source
Description: memory file.

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

Definition at line 42 of file MemoryFile.java.

Public Member Functions

 MemoryFile ()
 MemoryFile (String completeName, InputStream data) throws IOException
 MemoryFile (String completeName, byte[] data) throws IOException
 MemoryFile (String name, String path, InputStream data) throws IOException
String getFileName ()
 return the name of the file.
java.io.InputStream getFileDataStream ()
 return file data as a stream
String getFilePath ()
 return the path of the file without the file name.
long getFileDate ()
 return file last modification date
void setFileDate (java.util.Date date)
 set file last modification date
String getFileCompleteName ()
 return the complete file name of the file (ie: path+separator+name)
int getFileLength ()
 return the file data length
byte[] getFileData ()
 return file data as a byte array
int hashCode ()
boolean equals (Object obj)

Protected Member Functions

 MemoryFile (InputStream data) throws IOException

Protected Attributes

String fileName
String filePath
 file path.
byte[] fileData
long filedate

Static Package Attributes

static final long serialVersionUID = 5521257935120563452L


Member Function Documentation

String org.openmobileis.synchro.openmsp.server.util.MemoryFile.getFileName  ) 
 

return the name of the file.

The name doesnot contain file path.

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

Definition at line 97 of file MemoryFile.java.

References org.openmobileis.synchro.openmsp.server.util.MemoryFile.fileName.

String org.openmobileis.synchro.openmsp.server.util.MemoryFile.getFilePath  ) 
 

return the path of the file without the file name.

The path end with system separator.

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

Definition at line 111 of file MemoryFile.java.

References org.openmobileis.synchro.openmsp.server.util.MemoryFile.filePath.


Member Data Documentation

String org.openmobileis.synchro.openmsp.server.util.MemoryFile.filePath [protected]
 

file path.

End with path separator

Definition at line 49 of file MemoryFile.java.

Referenced by org.openmobileis.synchro.openmsp.server.util.MemoryFile.getFileCompleteName(), org.openmobileis.synchro.openmsp.server.util.MemoryFile.getFilePath(), and org.openmobileis.synchro.openmsp.server.util.MemoryFile.MemoryFile().


The documentation for this class was generated from the following file:
Generated on Wed Dec 14 21:05:40 2005 for OpenMobileIS by  doxygen 1.4.4