public class LargeObjectOps
extends java.lang.Object
At this time, the following Progress 4GL features are handled:
Progress From To Java Equivalent ------------- ------------ ------------ --------------------- COPY-LOB MEMPTR LONGCHAR copy COPY-LOB LONGCHAR MEMPTR copy COPY-LOB File MEMPTR readFromFile COPY-LOB MEMPTR File writeToFile COPY-LOB File LONGCHAR readFromFile COPY-LOB LONGCHAR File writeToFile
Modifier | Constructor and Description |
---|---|
private |
LargeObjectOps()
Private constructor to ensure instances are not created.
|
Modifier and Type | Method and Description |
---|---|
static void |
copy(BinaryData src,
longchar target)
Copy the contents of one LOB to another.
|
static void |
copy(BinaryData src,
longchar target,
character sourceCodePage,
character targetCodePage)
Copy the contents of one LOB to another.
|
static void |
copy(BinaryData src,
long startPos,
long length,
longchar target)
Copy the contents of one LOB to another.
|
static void |
copy(BinaryData src,
long startPos,
long length,
longchar target,
character sourceCodePage)
Copy the contents of one LOB to another.
|
static void |
copy(BinaryData src,
long startPos,
long length,
longchar target,
character sourceCodePage,
character targetCodePage)
Copy the contents of one LOB to another.
|
static void |
copy(BinaryData src,
NumberType startPos,
NumberType length,
longchar target)
Copy the contents of one LOB to another.
|
static void |
copy(BinaryData src,
NumberType startPos,
NumberType length,
longchar target,
character sourceCodePage)
Copy the contents of one LOB to another.
|
static void |
copy(BinaryData src,
NumberType startPos,
NumberType length,
longchar target,
character sourceCodePage,
character targetCodePage)
Copy the contents of one LOB to another.
|
static void |
copy(longchar src,
BinaryData target)
Copy the contents of one LOB to another.
|
private static boolean |
raiseErrorOnNullChar(byte[] data)
Raise a 12012 error when a
null character is encountered. |
static void |
readFromFile(character fname,
BinaryData data)
Read the full contents of the file and write that to the given binary object.
|
static void |
readFromFile(character fname,
int idx,
int len,
BinaryData data)
Read some contents of the file and write that to the given binary object.
|
static void |
readFromFile(character fname,
int idx,
int len,
longchar data)
Read some contents of the file and write that to the given longchar.
|
static void |
readFromFile(character fname,
int idx,
NumberType len,
BinaryData data)
Read some contents of the file and write that to the given binary object.
|
static void |
readFromFile(character fname,
int idx,
NumberType len,
longchar data)
Read some contents of the file and write that to the given longchar.
|
static void |
readFromFile(character fname,
longchar data)
Read the full contents of the file and write that to the given longchar.
|
static void |
readFromFile(character fname,
NumberType idx,
int len,
BinaryData data)
Read some contents of the file and write that to the given binary object.
|
static void |
readFromFile(character fname,
NumberType idx,
int len,
longchar data)
Read some contents of the file and write that to the given longchar.
|
static void |
readFromFile(character fname,
NumberType idx,
NumberType len,
BinaryData data)
Read some contents of the file and write that to the given binary object.
|
static void |
readFromFile(character fname,
NumberType idx,
NumberType len,
longchar data)
Read some contents of the file and write that to the given longchar.
|
static void |
readFromFile(java.lang.String fname,
BinaryData data)
Read the full contents of the file and write that to the given binary object.
|
static void |
readFromFile(java.lang.String fname,
int idx,
int len,
BinaryData data)
Read some contents of the file and write that to the given binary object.
|
static void |
readFromFile(java.lang.String fname,
int idx,
int len,
longchar data)
Read some contents of the file and write that to the given longchar.
|
static void |
readFromFile(java.lang.String fname,
int idx,
NumberType len,
BinaryData data)
Read some contents of the file and write that to the given binary object.
|
static void |
readFromFile(java.lang.String fname,
int idx,
NumberType len,
longchar data)
Read some contents of the file and write that to the given longchar.
|
static void |
readFromFile(java.lang.String fname,
longchar data)
Read the full contents of the file and write that to the given longchar.
|
static void |
readFromFile(java.lang.String fname,
NumberType idx,
int len,
BinaryData data)
Read some contents of the file and write that to the given binary object.
|
static void |
readFromFile(java.lang.String fname,
NumberType idx,
int len,
longchar data)
Read some contents of the file and write that to the given longchar.
|
static void |
readFromFile(java.lang.String fname,
NumberType idx,
NumberType len,
BinaryData data)
Read some contents of the file and write that to the given binary object.
|
static void |
readFromFile(java.lang.String fname,
NumberType idx,
NumberType len,
longchar data)
Read some contents of the file and write that to the given longchar.
|
static void |
writeToFile(BinaryData data,
character fname)
Write the full contents of the given binary object to the file specified by the given
filename.
|
static void |
writeToFile(BinaryData data,
character fname,
boolean append)
Write the full contents of the given binary object to the file specified by the given
filename.
|
static void |
writeToFile(BinaryData data,
java.lang.String fname)
Write the full contents of the given binary object to the file specified by the given
filename.
|
static void |
writeToFile(BinaryData data,
java.lang.String fname,
boolean append)
Write the full contents of the given binary object to the file specified by the given
filename.
|
static void |
writeToFile(longchar data,
character fname)
Write the full contents of the given longchar to the file specified by the given
filename.
|
static void |
writeToFile(longchar data,
character fname,
boolean append)
Write the full contents of the given longchar to the file specified by the given
filename.
|
static void |
writeToFile(longchar data,
java.lang.String fname)
Write the full contents of the given longchar to the file specified by the given
filename.
|
static void |
writeToFile(longchar data,
java.lang.String fname,
boolean append)
Write the full contents of the given longchar to the file specified by the given
filename.
|
private LargeObjectOps()
public static void copy(BinaryData src, longchar target)
No codepage conversion is implemented. The entire contents will be copied.
src
- The object to copy from.target
- The object to copy to.public static void copy(BinaryData src, longchar target, character sourceCodePage, character targetCodePage)
No codepage conversion is implemented. The entire contents will be copied.
src
- The object to copy from.target
- The object to copy to.sourceCodePage
- The source code page. If null
or unknown, it will be ignored.targetCodePage
- The target code page. If null
or unknown, it will be ignored.public static void copy(BinaryData src, long startPos, long length, longchar target)
No codepage conversion is implemented. The entire contents will be copied.
src
- The object to copy from.startPos
- The start position.length
- The number of bytes to copy.target
- The object to copy to.public static void copy(BinaryData src, long startPos, long length, longchar target, character sourceCodePage)
No codepage conversion is implemented. The entire contents will be copied.
src
- The object to copy from.startPos
- The start position.length
- The number of bytes to copy.target
- The object to copy to.sourceCodePage
- The source code page. If null
or unknown, it will be ignored.public static void copy(BinaryData src, long startPos, long length, longchar target, character sourceCodePage, character targetCodePage)
No codepage conversion is implemented. The entire contents will be copied.
src
- The object to copy from.startPos
- The start position.length
- The number of bytes to copy.target
- The object to copy to.sourceCodePage
- The source code page. If null
or unknown, it will be ignored.targetCodePage
- The target code page. If null
or unknown, it will be ignored.public static void copy(BinaryData src, NumberType startPos, NumberType length, longchar target)
No codepage conversion is implemented. The entire contents will be copied.
src
- The object to copy from.startPos
- The start position.length
- The number of bytes to copy.target
- The object to copy to.public static void copy(BinaryData src, NumberType startPos, NumberType length, longchar target, character sourceCodePage)
No codepage conversion is implemented. The entire contents will be copied.
src
- The object to copy from.startPos
- The start position.length
- The number of bytes to copy.target
- The object to copy to.sourceCodePage
- The source code page. If null
or unknown, it will be ignored.public static void copy(BinaryData src, NumberType startPos, NumberType length, longchar target, character sourceCodePage, character targetCodePage)
No codepage conversion is implemented. The entire contents will be copied.
src
- The object to copy from.startPos
- The start position.length
- The number of bytes to copy.target
- The object to copy to.sourceCodePage
- The source code page. If null
or unknown, it will be ignored.targetCodePage
- The target code page. If null
or unknown, it will be ignored.public static void copy(longchar src, BinaryData target)
No codepage conversion is implemented. The entire contents will be copied.
src
- The object to copy from.target
- The object to copy to.public static void readFromFile(java.lang.String fname, int idx, int len, BinaryData data)
fname
- The target filename.idx
- The 1-based offset into the file from which to start reading.len
- The number of bytes to read.data
- The buffer in which to write.public static void readFromFile(java.lang.String fname, NumberType idx, int len, BinaryData data)
fname
- The target filename.idx
- The 1-based offset into the file from which to start reading.len
- The number of bytes to read.data
- The buffer in which to write.public static void readFromFile(java.lang.String fname, int idx, NumberType len, BinaryData data)
fname
- The target filename.idx
- The 1-based offset into the file from which to start reading.len
- The number of bytes to read.data
- The buffer in which to write.public static void readFromFile(java.lang.String fname, NumberType idx, NumberType len, BinaryData data)
fname
- The target filename.idx
- The 1-based offset into the file from which to start reading.len
- The number of bytes to read.data
- The buffer in which to write.public static void readFromFile(character fname, int idx, int len, BinaryData data)
fname
- The target filename.idx
- The 1-based offset into the file from which to start reading.len
- The number of bytes to read.data
- The buffer in which to write.public static void readFromFile(character fname, NumberType idx, int len, BinaryData data)
fname
- The target filename.idx
- The 1-based offset into the file from which to start reading.len
- The number of bytes to read.data
- The buffer in which to write.public static void readFromFile(character fname, int idx, NumberType len, BinaryData data)
fname
- The target filename.idx
- The 1-based offset into the file from which to start reading.len
- The number of bytes to read.data
- The buffer in which to write.public static void readFromFile(character fname, NumberType idx, NumberType len, BinaryData data)
fname
- The target filename.idx
- The 1-based offset into the file from which to start reading.len
- The number of bytes to read.data
- The buffer in which to write.public static void readFromFile(java.lang.String fname, BinaryData data)
fname
- The target filename.data
- The buffer in which to write.public static void readFromFile(character fname, BinaryData data)
fname
- The target filename.data
- The buffer in which to write.public static void writeToFile(BinaryData data, character fname)
data
- The data to write.fname
- The target filename.public static void writeToFile(BinaryData data, character fname, boolean append)
data
- The data to write.fname
- The target filename.append
- true
if the contents should be appended to the file.public static void writeToFile(BinaryData data, java.lang.String fname)
data
- The data to write.fname
- The target filename.public static void writeToFile(BinaryData data, java.lang.String fname, boolean append)
data
- The data to write.fname
- The target filename.append
- true
if the contents should be appended to the file.public static void readFromFile(java.lang.String fname, int idx, int len, longchar data)
fname
- The target filename.idx
- The 1-based offset into the file from which to start reading.len
- The number of bytes to read.data
- The buffer in which to write.public static void readFromFile(java.lang.String fname, NumberType idx, int len, longchar data)
fname
- The target filename.idx
- The 1-based offset into the file from which to start reading.len
- The number of bytes to read.data
- The buffer in which to write.public static void readFromFile(java.lang.String fname, int idx, NumberType len, longchar data)
fname
- The target filename.idx
- The 1-based offset into the file from which to start reading.len
- The number of bytes to read.data
- The buffer in which to write.public static void readFromFile(java.lang.String fname, NumberType idx, NumberType len, longchar data)
fname
- The target filename.idx
- The 1-based offset into the file from which to start reading.len
- The number of bytes to read.data
- The buffer in which to write.public static void readFromFile(character fname, int idx, int len, longchar data)
fname
- The target filename.idx
- The 1-based offset into the file from which to start reading.len
- The number of bytes to read.data
- The buffer in which to write.public static void readFromFile(character fname, NumberType idx, int len, longchar data)
fname
- The target filename.idx
- The 1-based offset into the file from which to start reading.len
- The number of bytes to read.data
- The buffer in which to write.public static void readFromFile(character fname, int idx, NumberType len, longchar data)
fname
- The target filename.idx
- The 1-based offset into the file from which to start reading.len
- The number of bytes to read.data
- The buffer in which to write.public static void readFromFile(character fname, NumberType idx, NumberType len, longchar data)
fname
- The target filename.idx
- The 1-based offset into the file from which to start reading.len
- The number of bytes to read.data
- The buffer in which to write.public static void readFromFile(java.lang.String fname, longchar data)
fname
- The target filename.data
- The buffer in which to write.public static void readFromFile(character fname, longchar data)
fname
- The target filename.data
- The buffer in which to write.public static void writeToFile(longchar data, character fname)
data
- The data to write.fname
- The target filename.public static void writeToFile(longchar data, character fname, boolean append)
data
- The data to write.fname
- The target filename.append
- true
if the contents should be appended to the file.public static void writeToFile(longchar data, java.lang.String fname)
data
- The data to write.fname
- The target filename.public static void writeToFile(longchar data, java.lang.String fname, boolean append)
data
- The data to write.fname
- The target filename.append
- true
if the contents should be appended to the file.private static boolean raiseErrorOnNullChar(byte[] data)
null
character is encountered.data
- The bytes to check.true
if the error was raised. This may happen in a NO-ERROR
case, which means the caller should not execute further.