Top Description Fields Constructors Methods
org.apache.poi.ss.formula.function

pack-priv final Class FunctionMetadataReader

extends Object
Class Inheritance
Imports
java.io.BufferedReader, .IOException, .InputStream, .InputStreamReader, java.nio.charset.StandardCharsets, java.util.Arrays, .HashSet, .Set, java.util.regex.Pattern, org.apache.poi.ss.formula.ptg.Ptg, org.apache.poi.util.IOUtils

Converts the text meta-data file into a FunctionMetadataRegistry

Field Summary

Modifier and TypeField and Description
private static final int
private static final String[]
private static final Set<String>
private static final String
ELLIPSIS

plain ASCII text metadata file uses three dots for ellipsis

private static final byte[]
private static int
private static final String
private static final String
private static final Pattern
private static final Pattern

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public static FunctionMetadataRegistry
public static FunctionMetadataRegistry
public static int

Returns:

the max record length allowed for FunctionMetadataReader
getMaxRecordLength
()

private static boolean
isDash(String codes)

private static int
parseInt(String valStr)

private static byte
private static byte[]
private static byte
private static void
private static void
public static void
setMaxRecordLength(int
the max record length allowed for FunctionMetadataReader
length
)

private static void
validateFunctionName(String functionName)

Makes sure that footnote digits from the original OOO document have not been accidentally left behind

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

DEFAULT_MAX_RECORD_LENGTHback to summary
private static final int DEFAULT_MAX_RECORD_LENGTH
DIGIT_ENDING_FUNCTION_NAMESback to summary
private static final String[] DIGIT_ENDING_FUNCTION_NAMES
DIGIT_ENDING_FUNCTION_NAMES_SETback to summary
private static final Set<String> DIGIT_ENDING_FUNCTION_NAMES_SET
ELLIPSISback to summary
private static final String ELLIPSIS

plain ASCII text metadata file uses three dots for ellipsis

EMPTY_BYTE_ARRAYback to summary
private static final byte[] EMPTY_BYTE_ARRAY
MAX_RECORD_LENGTHback to summary
private static int MAX_RECORD_LENGTH
METADATA_FILE_NAMEback to summary
private static final String METADATA_FILE_NAME
METADATA_FILE_NAME_CETABback to summary
private static final String METADATA_FILE_NAME_CETAB
SPACE_DELIM_PATTERNback to summary
private static final Pattern SPACE_DELIM_PATTERN
TAB_DELIM_PATTERNback to summary
private static final Pattern TAB_DELIM_PATTERN

Constructor Detail

FunctionMetadataReaderback to summary
pack-priv FunctionMetadataReader()

Method Detail

createRegistryback to summary
public static FunctionMetadataRegistry createRegistry()
createRegistryCetabback to summary
public static FunctionMetadataRegistry createRegistryCetab()
getMaxRecordLengthback to summary
public static int getMaxRecordLength()
Returns:int

the max record length allowed for FunctionMetadataReader

isDashback to summary
private static boolean isDash(String codes)
parseIntback to summary
private static int parseInt(String valStr)
parseOperandTypeCodeback to summary
private static byte parseOperandTypeCode(String code)
parseOperandTypeCodesback to summary
private static byte[] parseOperandTypeCodes(String codes)
parseReturnTypeCodeback to summary
private static byte parseReturnTypeCode(String code)
processLineback to summary
private static void processLine(FunctionDataBuilder fdb, String line)
readResourceFileback to summary
private static void readResourceFile(FunctionDataBuilder fdb, String resourceFile)
setMaxRecordLengthback to summary
public static void setMaxRecordLength(int length)
Parameters
length:int

the max record length allowed for FunctionMetadataReader

validateFunctionNameback to summary
private static void validateFunctionName(String functionName)

Makes sure that footnote digits from the original OOO document have not been accidentally left behind