public class FileListAccessor extends Object
ExecutionContext.
| Modifier and Type | Method and Description |
|---|---|
static void |
addFileName(String fileName,
org.smooks.api.ExecutionContext execContext)
Adds the passes in
listFileName to the ExecutionContext. |
static List<String> |
getFileList(org.smooks.api.ExecutionContext executionContext,
String fromFile)
Return the list of files contained in the passed in file "fromFile"
|
static List<String> |
getListFileNames(org.smooks.api.ExecutionContext executionContext) |
static List<String> |
getListFileNames(Map attributes) |
public static void addFileName(String fileName, org.smooks.api.ExecutionContext execContext)
listFileName to the ExecutionContext.
Note that the filename should be specified with a path. This is so that the same filename can be used
in multiple directories.fileName - - list file name to add to the contextexecContext - - Smooks ExceutionContextpublic static List<String> getFileList(org.smooks.api.ExecutionContext executionContext, String fromFile) throws IOException
executionContext - - Smooks execution contextfromFile - - path to list fileIOException - - If the "fromFile" cannot be found or something else IO related goes wrong.public static List<String> getListFileNames(org.smooks.api.ExecutionContext executionContext)
Copyright © 2022. All rights reserved.