PhyloSort

phylosort.util
Class Commons

java.lang.Object
  extended by phylosort.util.Commons

public abstract class Commons
extends java.lang.Object

Global constants/variables/settings and utility methods

Version:
$Revision: 1.4 $
Author:
Ahmed Moustafa

Field Summary
static java.lang.String COMMENT_STARTER
          Comment starter
static java.lang.String DELIMITERS
          Delimiters
static java.lang.String TAB
          Tab
 
Constructor Summary
Commons()
           
 
Method Summary
static void copy(java.io.File in, java.io.File out)
          Copies a file from a source to a destination
static void copy(java.io.InputStream in, java.io.OutputStream out)
          Copies a file from a source to a destination
static java.lang.String getBuildTimestamp()
          Returns current version from the jar manifest
static java.lang.String getCurrentVersion()
          Returns build teimstamp from the jar manifest
static java.lang.String getFileSeparator()
          Returns system file separator.
static java.lang.String getLineSeparator()
          Returns system line separator.
static java.lang.String getUserDirectory()
          Returns user's current directory.
static void move(java.io.File in, java.io.File out)
          Moves a file from a source to a destination
static java.lang.String setUserDirectory(java.lang.String _userDirectory)
          Sets user's current directory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TAB

public static final java.lang.String TAB
Tab

See Also:
Constant Field Values

DELIMITERS

public static final java.lang.String DELIMITERS
Delimiters

See Also:
Constant Field Values

COMMENT_STARTER

public static final java.lang.String COMMENT_STARTER
Comment starter

See Also:
Constant Field Values
Constructor Detail

Commons

public Commons()
Method Detail

getFileSeparator

public static java.lang.String getFileSeparator()
Returns system file separator.

Returns:
file separator

getLineSeparator

public static java.lang.String getLineSeparator()
Returns system line separator.

Returns:
line separator

getUserDirectory

public static java.lang.String getUserDirectory()
Returns user's current directory.

Returns:
user's current directory

setUserDirectory

public static java.lang.String setUserDirectory(java.lang.String _userDirectory)
Sets user's current directory.

Parameters:
_userDirectory - user's current directory to set

move

public static void move(java.io.File in,
                        java.io.File out)
                 throws java.lang.Exception
Moves a file from a source to a destination

Parameters:
in - Source file
out - Target file
Throws:
java.lang.Exception

copy

public static void copy(java.io.File in,
                        java.io.File out)
                 throws java.lang.Exception
Copies a file from a source to a destination

Parameters:
in - Source file
out - Target file
Throws:
java.lang.Exception

copy

public static void copy(java.io.InputStream in,
                        java.io.OutputStream out)
                 throws java.lang.Exception
Copies a file from a source to a destination

Parameters:
in - Input stream
out - Ouput stream
Throws:
java.lang.Exception

getBuildTimestamp

public static java.lang.String getBuildTimestamp()
Returns current version from the jar manifest

Returns:
Current version

getCurrentVersion

public static java.lang.String getCurrentVersion()
Returns build teimstamp from the jar manifest

Returns:
Build timestamp

PhyloSort

SourceForge.Net