2007-05-29 00:42:00 +00:00
|
|
|
/*
|
2008-03-04 05:13:15 +00:00
|
|
|
* $Id: Console.java 115 2008-03-03 11:13:15Z baconevi $
|
2007-10-17 00:30:00 +00:00
|
|
|
*
|
|
|
|
* {License}
|
2007-05-29 00:42:00 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
package ase.awk;
|
|
|
|
|
|
|
|
public class Console extends IO
|
|
|
|
{
|
|
|
|
public static final int MODE_READ = Extio.MODE_CONSOLE_READ;
|
|
|
|
public static final int MODE_WRITE = Extio.MODE_CONSOLE_WRITE;
|
|
|
|
|
|
|
|
protected Console (Awk awk, Extio extio)
|
|
|
|
{
|
|
|
|
super (awk, extio);
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setFileName (String name) throws Exception
|
|
|
|
{
|
|
|
|
if (getMode() == MODE_READ)
|
|
|
|
{
|
|
|
|
awk.setfilename (getRunId(), name);
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
awk.setofilename (getRunId(), name);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|