public class FunctionBINFILE extends AbstractFunction
| Modifier and Type | Class and Description |
|---|---|
private static class |
FunctionBINFILE.Type |
| Modifier and Type | Field and Description |
|---|---|
private static ValueType[][] |
ARG_TYPES |
ALL_FUNCTIONS, EXECUTION_PREFIX, FUNCTION_NAME_MAP, UID_COUNTER| Constructor and Description |
|---|
FunctionBINFILE() |
| Modifier and Type | Method and Description |
|---|---|
private static java.lang.String |
convertTo(java.io.File file,
FunctionBINFILE.Type type,
boolean deflate,
int lineLength,
java.lang.String endOfLine) |
private static byte[] |
deflate(byte[] data) |
Value |
executeStrStr(PreprocessorContext context,
Value strfilePath,
Value encodeType) |
ValueType[][] |
getAllowedArgumentTypes()
Get arrays of supported argument types
|
int |
getArity()
Get the function arity
|
java.lang.String |
getName()
Get the function name
|
java.lang.String |
getReference()
Get the function reference to be output for a help request
|
ValueType |
getResultType()
Get the result type
|
private static boolean |
hasDeflateFlag(java.lang.String name,
FunctionBINFILE.Type type) |
private static boolean |
hasSplitFlag(java.lang.String name,
FunctionBINFILE.Type type) |
findForClass, findForName, getExpressionItemPriority, getExpressionItemType, toStringprivate static final ValueType[][] ARG_TYPES
private static boolean hasSplitFlag(java.lang.String name,
FunctionBINFILE.Type type)
private static boolean hasDeflateFlag(java.lang.String name,
FunctionBINFILE.Type type)
public java.lang.String getName()
AbstractFunctiongetName in class AbstractFunctionpublic java.lang.String getReference()
AbstractFunctiongetReference in class AbstractFunctionpublic int getArity()
AbstractFunctiongetArity in class AbstractFunction@MustNotContainNull public ValueType[][] getAllowedArgumentTypes()
AbstractFunctiongetAllowedArgumentTypes in class AbstractFunctionpublic ValueType getResultType()
AbstractFunctiongetResultType in class AbstractFunctionpublic Value executeStrStr(PreprocessorContext context, Value strfilePath, Value encodeType)
private static java.lang.String convertTo(java.io.File file,
FunctionBINFILE.Type type,
boolean deflate,
int lineLength,
java.lang.String endOfLine)
throws java.io.IOException
java.io.IOExceptionprivate static byte[] deflate(byte[] data)
throws java.io.IOException
java.io.IOException