public class TargetLobFile extends LobCopyOutput
TO FILE target-filename [ APPEND ]
phrase.Modifier and Type | Field and Description |
---|---|
private boolean |
append
Whether to append to current file; if
false , overwrite any existing content |
private java.lang.String |
filename
Name of target output file, which is a remote resource
|
TYPE_BLOB, TYPE_CHAR_BIT, TYPE_CLOB, TYPE_FIELD_BIT, TYPE_FILE, TYPE_LONGCHAR, TYPE_MEMPTR, TYPE_UNKNOWN
Constructor and Description |
---|
TargetLobFile(character filename)
Constructor which accepts a filename.
|
TargetLobFile(java.lang.String filename)
Constructor which accepts a filename.
|
Modifier and Type | Method and Description |
---|---|
TargetLobFile |
append()
Configure the copy to append to the target file instead of overwriting it.
|
java.lang.String |
getFilename()
Obtain the file name of this wrapper.
|
private static java.lang.String |
getFilename(character filename)
Extract the filename from the given parameter.
|
int |
getObjectType()
Obtain the type of the object wrapped by this parameter
|
void |
write(byte[] data)
Assign the given array of bytes as the data managed by this object.
|
void |
write(java.lang.String data,
java.lang.String opcp)
Assign the given character data as the data managed by this object.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getCodePage, isCharacterData, isLargeObject, validate, validateOffset
private final java.lang.String filename
private boolean append
false
, overwrite any existing contentpublic TargetLobFile(java.lang.String filename)
filename
- Name of file from which to copy.public TargetLobFile(character filename)
filename
- Name of file from which to copy. Must not be unknown.public int getObjectType()
LobCopyParameter.TYPE_FILE
.public TargetLobFile append()
public void write(byte[] data)
write
in class LobCopyOutput
data
- Data to be assigned to this object.public void write(java.lang.String data, java.lang.String opcp)
write
in class LobCopyOutput
data
- Data to be assigned to this object.opcp
- Target OE codepage to be used in write operation.public java.lang.String getFilename()
private static java.lang.String getFilename(character filename)
filename
- File name.