be.ibridge.kettle.trans.step.xmlinput.XMLInputData.java Source code

Java tutorial

Introduction

Here is the source code for be.ibridge.kettle.trans.step.xmlinput.XMLInputData.java

Source

/**********************************************************************
**                                                                   **
**               This code belongs to the KETTLE project.            **
**                                                                   **
** Kettle, from version 2.2 on, is released into the public domain   **
** under the Lesser GNU Public License (LGPL).                       **
**                                                                   **
** For more details, please read the document LICENSE.txt, included  **
** in this project                                                   **
**                                                                   **
** http://www.kettle.be                                              **
** info@kettle.be                                                    **
**                                                                   **
**********************************************************************/

package be.ibridge.kettle.trans.step.xmlinput;

import java.io.BufferedInputStream;
import java.io.FileInputStream;
import java.text.DateFormatSymbols;
import java.text.DecimalFormat;
import java.text.DecimalFormatSymbols;
import java.text.NumberFormat;
import java.text.SimpleDateFormat;
import java.util.List;
import java.util.zip.ZipInputStream;

import org.apache.commons.vfs.FileObject;
import org.w3c.dom.Document;
import org.w3c.dom.Node;

import be.ibridge.kettle.core.Row;
import be.ibridge.kettle.trans.step.BaseStepData;
import be.ibridge.kettle.trans.step.StepDataInterface;

/**
 * @author Matt
 * @since 22-jan-2005
 */
public class XMLInputData extends BaseStepData implements StepDataInterface {
    public String thisline, nextline, lastline;
    public Row previousRow;
    public int nr_repeats;

    public NumberFormat nf;
    public DecimalFormat df;
    public DecimalFormatSymbols dfs;
    public SimpleDateFormat daf;
    public DateFormatSymbols dafs;

    public List files;
    public boolean last_file;
    public FileObject file;
    public int filenr;

    public FileInputStream fr;
    public ZipInputStream zi;
    public BufferedInputStream is;
    public Document document;
    public Node section;
    public String itemElement;
    public int itemCount;
    public int itemPosition;
    public long rownr;

    /**
     * 
     */
    public XMLInputData() {
        super();

        thisline = null;
        nextline = null;
        nf = NumberFormat.getInstance();
        df = (DecimalFormat) nf;
        dfs = new DecimalFormatSymbols();
        daf = new SimpleDateFormat();
        dafs = new DateFormatSymbols();

        nr_repeats = 0;
        previousRow = null;
        filenr = 0;

        fr = null;
        zi = null;
        is = null;
    }

}