de.spieleck.app.turn
Class Util
java.lang.Object
de.spieleck.app.turn.Util
public class Util
- extends java.lang.Object
Well, have you ever seen a Java project without a util package or Util class?
$URL: https://svn.sourceforge.net/svnroot/jtourney/src/de/spieleck/app/turn/Util.java $
- Version:
- $Revision: 2 $ $Date: 2006-03-20 14:33:27 +0100 (Mo, 20 Mrz 2006) $ $Author: nestefan $
- Author:
- Frank S. Nestel, $Author: nestefan $
Constructor Summary |
Util()
|
Method Summary |
static boolean |
check4file(java.lang.Class clazz,
java.io.File dir,
java.lang.String name,
java.io.File dir2,
java.lang.String prefix)
Ensure the existence of a certain file. |
static void |
copyStream(java.io.OutputStream os,
java.io.InputStream is)
|
static int |
parseNextInt(java.lang.String line,
int start)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SEPCHAR
public static final char SEPCHAR
- See Also:
- Constant Field Values
Util
public Util()
parseNextInt
public static int parseNextInt(java.lang.String line,
int start)
throws java.lang.Exception
- Throws:
java.lang.Exception
check4file
public static boolean check4file(java.lang.Class clazz,
java.io.File dir,
java.lang.String name,
java.io.File dir2,
java.lang.String prefix)
throws java.io.IOException
- Ensure the existence of a certain file.
If it does not exist, try to copy it from the parent directory.
If it is not in the parent directory, find a resource in classpath.
- Throws:
java.io.IOException
copyStream
public static void copyStream(java.io.OutputStream os,
java.io.InputStream is)
throws java.io.IOException
- Throws:
java.io.IOException