package msg ;
/**
* <p>Title: </p>
*
* <p>Description: </p>
*
* <p>Copyright: Copyright (c) 2008</p>
*
* <p>Company: </p>
*
* @author not attributable
* @version 1.0
*/
import java.io.File ;
import java.io.FileOutputStream ;
import java.io.IOException ;
import java.io.PrintStream ;
public class MainLog
{
public static String[] pList={"bcc","bic","fpp","puc","trp"};
public static boolean isIn ( String processor )
{
boolean isOK=false;
processor=processor.toLowerCase();
for(int i=0;i<pList.length;i++)
{
if(processor.equals(pList[i]))
{
isOK=true;
break;
}
}
return isOK;
}
private static PrintStream sp = null ;
static
{
File file=new File("log.txt");
try
{
file.delete();
file.createNewFile () ;
FileOutputStream fos = new FileOutputStream ( file ) ;
sp = new PrintStream ( fos ) ;
}
catch ( IOException ex )
{
ex.printStackTrace () ;
}
};
public MainLog ( )
{
}
static public void log ( String info )
{
sp.println ( info ) ;
}
static public void closeFile ()
{
sp.close () ;
}
public static void main ( String[] args )
{
// TODO Auto-generated method stub
}
}
/// msg.MainLog.log("ogsplit:Error: Syntaxerror in processor file\n");
/**
* <p>Title: </p>
*
* <p>Description: </p>
*
* <p>Copyright: Copyright (c) 2008</p>
*
* <p>Company: </p>
*
* @author not attributable
* @version 1.0
*/
import java.io.File ;
import java.io.FileOutputStream ;
import java.io.IOException ;
import java.io.PrintStream ;
public class MainLog
{
public static String[] pList={"bcc","bic","fpp","puc","trp"};
public static boolean isIn ( String processor )
{
boolean isOK=false;
processor=processor.toLowerCase();
for(int i=0;i<pList.length;i++)
{
if(processor.equals(pList[i]))
{
isOK=true;
break;
}
}
return isOK;
}
private static PrintStream sp = null ;
static
{
File file=new File("log.txt");
try
{
file.delete();
file.createNewFile () ;
FileOutputStream fos = new FileOutputStream ( file ) ;
sp = new PrintStream ( fos ) ;
}
catch ( IOException ex )
{
ex.printStackTrace () ;
}
};
public MainLog ( )
{
}
static public void log ( String info )
{
sp.println ( info ) ;
}
static public void closeFile ()
{
sp.close () ;
}
public static void main ( String[] args )
{
// TODO Auto-generated method stub
}
}
/// msg.MainLog.log("ogsplit:Error: Syntaxerror in processor file\n");