|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.kirkwarez.wdysdv.batch.Task
The Task
class is a class that represents a batchable task. Such an
item has an input and output filename, a type (MYST V: EOA or Uru) and a mode (encrypt
or * decrypt). It can be fed to a processor that will process this batch item (encrypt
or decrypt the input file into the output file using the specified type of
encryption).
Task
s are immutable, because the program doesn't edit them, but
removes them and puts the data into the user's hands for reentry.
Field Summary | |
static int |
DECRYPT
The decryption mode. |
static int |
ENCRYPT
The encryption mode. |
static int |
EOA
The MYST V: End of Ages encryption type. |
protected File |
input
The input file. |
protected int |
mode
The mode. |
protected File |
output
The output file. |
protected int |
type
The type of encryption. |
static int |
URU
The Uru encryption type. |
Constructor Summary | |
Task(File input,
File output,
int type,
int mode)
Create a new task. |
Method Summary | |
File |
getInputFile()
Returns the input file. |
int |
getMode()
Returns the mode of operation, which is either ENCRYPT or DECRYPT. |
File |
getOutputFile()
Returns the output file. |
int |
getType()
Returns the type of encryption, which is either EOA or URU. |
protected void |
setInputFile(File input)
Sets the input file to the given File . |
protected void |
setMode(int mode)
Sets the mode of operation to either ENCRYPT or DECRYPT. |
protected void |
setOutputFile(File output)
Sets the output file to the given File . |
protected void |
setType(int type)
Sets the type of encryption, to either EOA or URU. |
String |
toString()
Returns a string representation of this object, for use in the list. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected File input
protected File output
protected int type
protected int mode
public static final int EOA
public static final int URU
public static final int ENCRYPT
public static final int DECRYPT
Constructor Detail |
public Task(File input, File output, int type, int mode)
input
- The input File
.output
- The output File
.type
- The game type.mode
- The encryption mode.Method Detail |
public File getInputFile()
protected void setInputFile(File input)
File
. May not be null.
input
- The input file.public File getOutputFile()
protected void setOutputFile(File output)
File
.
output
- The input file.public int getType()
protected void setType(int type)
type
- The type of encryption.public int getMode()
protected void setMode(int mode)
mode
- The mode of operation.public String toString()
Object.toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |