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 contentErrorException
RecordHolder getBinaryHandle(ExecutionContext context, Decimal id) throws ErrorException
context
- id
- ErrorException
RecordHolder createBinaryHandle(ExecutionContext context, String fileName, String description, String content) throws ErrorException
context
- fileName
- description
- content
- ErrorException
RecordHolder createBinaryHandle(ExecutionContext context, String fileName, String description, String content, String mime, String charset) throws ErrorException
context
- fileName
- description
- content
- mime
- charset
- ErrorException
BinaryHolder toBinary(ExecutionContext ctx, String str)
ctx
- str
- String toString(ExecutionContext ctx, BinaryHolder binary, String charset) throws ErrorException
ctx
- binary
- charset
- ErrorException
Decimal size(ExecutionContext ctx, BinaryHolder binary) throws ErrorException
ctx
- binary
- ErrorException
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.