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
|
|
|
}
|
|
|
|
};
|