Java tutorial
/* Copyright (c) 2007 Pentaho Corporation. All rights reserved. * This software was developed by Pentaho Corporation and is provided under the terms * of the GNU Lesser General Public License, Version 2.1. You may not use * this file except in compliance with the license. If you need a copy of the license, * please go to http://www.gnu.org/licenses/lgpl-2.1.txt. The Original Code is Pentaho * Data Integration. The Initial Developer is Pentaho Corporation. * * Software distributed under the GNU Lesser Public License is distributed on an "AS IS" * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. Please refer to * the license for the specific language governing your rights and limitations.*/ package com.panet.imeta.trans.steps.exceloutput; import java.io.OutputStream; import java.util.Hashtable; import java.util.Map; import jxl.write.WritableCellFormat; import jxl.write.WritableFont; import jxl.write.WritableSheet; import jxl.write.WritableWorkbook; import org.apache.commons.vfs.FileObject; import com.panet.imeta.core.row.RowMetaInterface; import com.panet.imeta.trans.step.BaseStepData; import com.panet.imeta.trans.step.StepDataInterface; /** * @author Matt * @since 7-sep-2006 */ public class ExcelOutputData extends BaseStepData implements StepDataInterface { public int splitnr; public RowMetaInterface previousMeta; public RowMetaInterface outputMeta; public int fieldnrs[]; public WritableWorkbook workbook; public WritableSheet sheet; public int templateColumns; // initial number of columns in the template public WritableCellFormat writableCellFormat; public Map<String, WritableCellFormat> formats; public int positionX; public int positionY; public WritableFont headerFont; public OutputStream outputStream; public FileObject file; public boolean oneFileOpened; public String realSheetname; int[] fieldsWidth; public boolean headerWrote; /** * */ public ExcelOutputData() { super(); formats = new Hashtable<String, WritableCellFormat>(); oneFileOpened = false; file = null; realSheetname = null; headerWrote = false; } }