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

Public Member Functions

 JasperFile (File file)
 
void print (String caption, String type)
 
- 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 35 of file JasperFile.java.

Constructor & Destructor Documentation

◆ JasperFile()

org.turro.file.JasperFile.JasperFile ( File  file)

Definition at line 37 of file JasperFile.java.

37  {
38  super(file);
39  for(ReportTypeEnum rt : ReportTypeEnum.values()) {
40  actions.add(new ReportAction(this, rt));
41  }
42  }
List< FileAction > actions

Member Function Documentation

◆ isMyType()

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

Definition at line 52 of file JasperFile.java.

52  {
53  String ext = FileUtil.getExtension(file);
54  return "jasper".equalsIgnoreCase(ext);
55  }
Here is the caller graph for this function:

◆ print()

void org.turro.file.JasperFile.print ( String  caption,
String  type 
)

Definition at line 44 of file JasperFile.java.

44  {
45  try {
46  ReportPrint.print(caption, (Collection)null, null, getFile().getAbsolutePath(), null, type, null);
47  } catch (JRException ex) {
48  Logger.getLogger(JasperFile.class.getName()).log(Level.SEVERE, ElephantContext.logMsg(null), ex);
49  }
50  }
Here is the call graph for this function:
Here is the caller graph for this function:

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