/*
 * @(#)FileConvertedEvent.java
 *
 * Copyright (c) 2002-2003 JSCAPE
 * 1147 S. 53rd Pl., Mesa, Arizona, 85206, U.S.A.
 * All rights reserved.
 *
 * This software is the confidential and proprietary information of
 * JSCAPE. ("Confidential Information").  You shall not disclose such
 * Confidential Information and shall use it only in accordance with
 * the terms of the license agreement you entered into with JSCAPE.
 */

package com.jscape.file;

import java.io.File;
import java.util.EventObject;

/**
 * Fired when a file has been converted using the FileConvert class.
 */
public class FileConvertedEvent
        extends EventObject {

    /**
     * Input.
     */
    private File input;
    /**
     * Output.
     */
    private File output;

    /**
     * Creates a new FileConvertedEvent instance.
     *
     * @param source the source of this event
     * @param input  the input file converted
     * @param output the destination of the converted file
     */
    public FileConvertedEvent(final Object source, final File input, final File output) {
        super(source);
        this.input = input;
        this.output = output;
    }

    /**
     * @return input file
     */
    public File getInput() {
        return input;
    }

    /**
     * Gets the output file containing the contents of converted input file.
     *
     * @return output file
     */
    public File getOutput() {
        return output;
    }

}
