public interface DataFunctions
| Modifier and Type | Method and Description |
|---|---|
RecordHolder |
createBinaryHandle(ExecutionContext context,
String fileName,
String description,
String content)
Creates binary handle.
|
RecordHolder |
createBinaryHandle(ExecutionContext context,
String fileName,
String description,
String content,
String mime,
String charset)
Creates binary handle.
|
RecordHolder |
getBinaryHandle(ExecutionContext context,
Decimal id)
Returns a binary handle of the specified identifier.
|
RecordHolder |
resource(ExecutionContext context,
String module,
String path)
Creates a binary handle from a module's resource located at the specified path.
|
Decimal |
size(ExecutionContext ctx,
BinaryHolder binary)
Returns the size of the binary data in bytes.
|
BinaryHolder |
toBinary(ExecutionContext ctx,
String str)
Converts the specified string to binary.
|
String |
toString(ExecutionContext ctx,
BinaryHolder binary,
String charset)
Converts binary to string.
|
RecordHolder resource(ExecutionContext context, String module, String path) throws ErrorException
context - module - name of modulepath - path to binary contentErrorExceptionRecordHolder getBinaryHandle(ExecutionContext context, Decimal id) throws ErrorException
context - id - ErrorExceptionRecordHolder createBinaryHandle(ExecutionContext context, String fileName, String description, String content) throws ErrorException
context - fileName - description - content - ErrorExceptionRecordHolder createBinaryHandle(ExecutionContext context, String fileName, String description, String content, String mime, String charset) throws ErrorException
context - fileName - description - content - mime - charset - ErrorExceptionBinaryHolder toBinary(ExecutionContext ctx, String str)
ctx - str - String toString(ExecutionContext ctx, BinaryHolder binary, String charset) throws ErrorException
ctx - binary - charset - ErrorExceptionDecimal size(ExecutionContext ctx, BinaryHolder binary) throws ErrorException
ctx - binary - ErrorExceptionCopyright © 2007-2020 Whitestein Technologies. All Rights Reserved.