Whatever message this page gives is out now! Go check it out!
load() to handle file formats not natively supported by ColdFusion's built-in parsers.docService.registerCustomParser(type, config)Parameter | Type | Required | Description |
|---|---|---|---|
type | String | Required | Identifier or file extension for this parser (for example, "myformat"). |
config | Struct | Required | A Struct with two keys: parserClass (String , fully qualified Java class name implementing DocumentParser); extensions (Array of file extensions that this parser handles, for example ["myf", "myd"]). |
void.docService.registerCustomParser("myformat", {
parserClass: "com.example.parsers.MyCustomParser",
extensions: ["myf", "myd"]
});
// After registration, load() will invoke MyCustomParser for *.myf and *.myd files
docs = docService.load({ path: "./data/", recursive: true });