wt.util
Class WriteMode

java.lang.Object
  extended bywt.util.WriteMode

public class WriteMode
extends Object

WriteMode is an enumeration of modes for writing to an OutputFile.

See Also:
OutputFile

Field Summary
static WriteMode APPEND
          Append to an existing file.
static WriteMode BACKUP
          Create a backup of any existing file, before re-writing it.
static WriteMode MERGE
          Merge into an existing file.
static WriteMode ORIGINAL
          Only open the file, if it doesn't already exist.
static WriteMode OVERWRITE
          Clobber an existing file.
protected  String value
           
private static String versionID
           
 
Constructor Summary
protected WriteMode(String theValue)
           
 
Method Summary
static WriteMode toEnum(String theValue)
          Obtain the WriteMode representation of the String value.
 String toString()
          Obtain the String representation of the WriteMode value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

versionID

private static final String versionID
See Also:
Constant Field Values

value

protected String value

ORIGINAL

public static final WriteMode ORIGINAL
Only open the file, if it doesn't already exist.


OVERWRITE

public static final WriteMode OVERWRITE
Clobber an existing file.


MERGE

public static final WriteMode MERGE
Merge into an existing file.


BACKUP

public static final WriteMode BACKUP
Create a backup of any existing file, before re-writing it.


APPEND

public static final WriteMode APPEND
Append to an existing file.

Constructor Detail

WriteMode

protected WriteMode(String theValue)
Method Detail

toEnum

public static WriteMode toEnum(String theValue)
Obtain the WriteMode representation of the String value.

Parameters:
theValue - the String value of one of the possible WriteMode values
Returns:
the WriteMode representation of the String value

toString

public final String toString()
Obtain the String representation of the WriteMode value.

Returns:
the String representation of the WriteMode value