qse/ase/awk/Extio.java

63 lines
1.1 KiB
Java
Raw Normal View History

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;
private Object handle;
protected Extio (String name, int type, int mode)
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;
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;
}
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
}
2006-11-21 15:06:51 +00:00
protected void finalize ()
2006-10-24 06:03:14 +00:00
{
2006-11-21 15:06:51 +00:00
System.out.println ("Extio being finalized....");
2006-10-24 06:03:14 +00:00
}
};