public class CopySpec
extends java.lang.Object
The following copy operation types are defined:
Type Description
------------------- ----------------------------------------
Type.BINARY A byte for byte copy.
Type.TXT_TO_HTML Each line of the input text file will be
copied to the output file as a line numbered
named anchor inside HTML preformatted tags.
| Modifier and Type | Class and Description |
|---|---|
static class |
CopySpec.Type
Operation type constants.
|
| Modifier and Type | Field and Description |
|---|---|
private CopySpec.Type |
op
Operation.
|
private java.lang.String |
source
Source filename.
|
private java.lang.String |
target
Target filename.
|
| Constructor and Description |
|---|
CopySpec(java.lang.String source,
java.lang.String target)
Create an instance with the given filenames.
|
CopySpec(java.lang.String source,
java.lang.String target,
CopySpec.Type op)
Create an instance with the given filenames.
|
| Modifier and Type | Method and Description |
|---|---|
CopySpec.Type |
getOperation()
Access the copy operation.
|
java.lang.String |
getSource()
Access the source filename.
|
java.lang.String |
getTarget()
Access the target filename.
|
void |
setOperation(CopySpec.Type op)
Set the copy operation type.
|
void |
setSource(java.lang.String source)
Set the source filename.
|
void |
setTarget(java.lang.String target)
Set the target filename.
|
private java.lang.String source
private java.lang.String target
private CopySpec.Type op
public CopySpec(java.lang.String source,
java.lang.String target)
Type.BINARY.source - Source filename.target - Target filename.public CopySpec(java.lang.String source,
java.lang.String target,
CopySpec.Type op)
source - Source filename.target - Target filename.op - Copy operation to use.public java.lang.String getSource()
public void setSource(java.lang.String source)
source - New source filename.public java.lang.String getTarget()
public void setTarget(java.lang.String target)
target - New target filename.public CopySpec.Type getOperation()
public void setOperation(CopySpec.Type op)
op - New copy operation type.