BrightSide Workbench Full Report + Source Code
org.turro.file.ZipFile Class Reference
Inheritance diagram for org.turro.file.ZipFile:
Collaboration diagram for org.turro.file.ZipFile:

Public Member Functions

 ZipFile (File file)
 
void unzip ()
 
- Public Member Functions inherited from org.turro.file.FileWrapper
 FileWrapper (File file)
 
File getFile ()
 
String getBaseName ()
 
String getExtension ()
 
List< FileActiongetActions ()
 
FileAction getAction (String label)
 
Properties getProperties () throws FileNotFoundException, IOException
 
FileItem getFileItem ()
 
void setFileItem (FileItem fileItem)
 
void delete ()
 
void copyTo (File destination) throws IOException
 
void download ()
 
void upload (final Command command)
 
void uploadContent (final Command command)
 

Static Public Member Functions

static boolean isMyType (File file)
 
- Static Public Member Functions inherited from org.turro.file.FileWrapper
static FileWrapper getFileByType (File file)
 

Additional Inherited Members

- Protected Attributes inherited from org.turro.file.FileWrapper
File file
 
FileItem fileItem
 
PropertiesFile propertiesFile
 
List< FileActionactions
 

Detailed Description

Author
Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g

Definition at line 29 of file ZipFile.java.

Constructor & Destructor Documentation

◆ ZipFile()

org.turro.file.ZipFile.ZipFile ( File  file)

Definition at line 31 of file ZipFile.java.

31  {
32  super(file);
33  actions.add(new UnZipAction(this));
34  }
List< FileAction > actions

Member Function Documentation

◆ isMyType()

static boolean org.turro.file.ZipFile.isMyType ( File  file)
static

Definition at line 40 of file ZipFile.java.

40  {
41  String ext = FileUtil.getExtension(file);
42  return "zip".equalsIgnoreCase(ext);
43  }
Here is the caller graph for this function:

◆ unzip()

void org.turro.file.ZipFile.unzip ( )

Definition at line 36 of file ZipFile.java.

36  {
37  new Unzipper().unzip(file.getAbsolutePath(), FileUtil.getParentPath(file.getAbsolutePath()));
38  }
Here is the caller graph for this function:

The documentation for this class was generated from the following file: