qse/ase/awk/Extio.java

76 lines
1.3 KiB
Java
Raw Normal View History

2007-02-03 10:47:41 +00:00
/*
* $Id: Extio.java,v 1.1.1.1 2007/03/28 14:05:13 bacon Exp $
2007-02-03 10:47:41 +00:00
*
* {License}
*/
2006-10-24 06:03:14 +00:00
package ase.awk;
public class Extio
{
2006-11-21 15:06:51 +00:00
public static final int TYPE_PIPE = 0;
public static final int TYPE_COPROC = 1;
public static final int TYPE_FILE = 2;
public static final int TYPE_CONSOLE = 3;
2006-10-24 06:03:14 +00:00
2006-11-21 15:06:51 +00:00
public static final int MODE_PIPE_READ = 0;
public static final int MODE_PIPE_WRITE = 1;
public static final int MODE_FILE_READ = 0;
public static final int MODE_FILE_WRITE = 1;
public static final int MODE_FILE_APPEND = 2;
public static final int MODE_CONSOLE_READ = 0;
public static final int MODE_CONSOLE_WRITE = 1;
private String name;
private int type;
private int mode;
2006-11-22 15:12:04 +00:00
private long run_id;
2006-11-21 15:06:51 +00:00
private Object handle;
2006-11-22 15:12:04 +00:00
protected Extio (String name, int type, int mode, long run_id)
2006-10-24 06:03:14 +00:00
{
2006-11-21 15:06:51 +00:00
this.name = name;
this.type = type;
this.mode = mode;
2006-11-22 15:12:04 +00:00
this.run_id = run_id;
2006-11-21 15:06:51 +00:00
this.handle = null;
2006-10-24 06:03:14 +00:00
}
2006-11-21 15:06:51 +00:00
public String getName ()
{
return this.name;
}
public int getType ()
{
return this.type;
}
public int getMode ()
{
return this.mode;
}
2006-11-22 15:12:04 +00:00
public long getRunId ()
{
return this.run_id;
}
2006-11-21 15:06:51 +00:00
public void setHandle (Object handle)
{
this.handle = handle;
}
2006-10-24 06:03:14 +00:00
2006-11-21 15:06:51 +00:00
public Object getHandle ()
2006-10-24 06:03:14 +00:00
{
2006-11-21 15:06:51 +00:00
return this.handle;
2006-10-24 06:03:14 +00:00
}
2007-01-24 14:21:30 +00:00
protected void finalize () throws Throwable
2006-10-24 06:03:14 +00:00
{
2007-01-24 14:21:30 +00:00
super.finalize ();
2006-10-24 06:03:14 +00:00
}
};