KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > jode > decompiler > ProgressListener


1 /* ProgressListener Copyright (C) 2000-2002 Jochen Hoenicke.
2  *
3  * This program is free software; you can redistribute it and/or modify
4  * it under the terms of the GNU Lesser General Public License as published by
5  * the Free Software Foundation; either version 2, or (at your option)
6  * any later version.
7  *
8  * This program is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11  * GNU General Public License for more details.
12  *
13  * You should have received a copy of the GNU Lesser General Public License
14  * along with this program; see the file COPYING.LESSER. If not, write to
15  * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
16  *
17  * $Id: ProgressListener.java,v 4.1.2.1 2002/05/28 17:34:03 hoenicke Exp $
18  */

19
20 package jode.decompiler;
21 import jode.GlobalOptions;
22 import jode.bytecode.SearchPath;
23 import jode.bytecode.ClassInfo;
24 import java.io.File JavaDoc;
25 import java.io.PrintWriter JavaDoc;
26 import java.io.Writer JavaDoc;
27 import java.io.BufferedWriter JavaDoc;
28
29 /**
30  * This interface is used by jode to tell about its progress. You
31  * supply an instance of this interface to the
32  * {@link Decompiler.decompile} method.<br>
33  *
34  * @author <a HREF="mailto:jochen@gnu.org">Jochen Hoenicke</a>
35  * @version 1.0 */

36 public interface ProgressListener {
37    /**
38     * Gets called when jode makes some progress.
39     * @param progress A number between 0.0 and 1.0
40     * @param detail
41     * The name of the currently decompiled method or class.
42     */

43    public void updateProgress(double progress, String JavaDoc detail);
44 }
45
Popular Tags