Class FileUtils

java.lang.Object
org.springframework.cloud.fn.common.file.FileUtils

public final class FileUtils extends Object
Author:
Gary Russell, Artem Bilan, Christian Tzolov
  • Method Details

    • enhanceFlowForReadingMode

      public static org.springframework.integration.dsl.IntegrationFlowBuilder enhanceFlowForReadingMode(org.springframework.integration.dsl.IntegrationFlowBuilder flowBuilder, FileConsumerProperties fileConsumerProperties)
      Enhance an IntegrationFlowBuilder to add flow snippets, depending on FileConsumerProperties.
      Parameters:
      flowBuilder - the flow builder.
      fileConsumerProperties - the properties.
      Returns:
      the updated flow builder.
    • enhanceStreamFlowForReadingMode

      public static org.springframework.integration.dsl.IntegrationFlowBuilder enhanceStreamFlowForReadingMode(org.springframework.integration.dsl.IntegrationFlowBuilder flowBuilder, FileConsumerProperties fileConsumerProperties)
      Enhance an IntegrationFlowBuilder to add flow snippets, depending on FileConsumerProperties; used for streaming sources.
      Parameters:
      flowBuilder - the flow builder.
      fileConsumerProperties - the properties.
      Returns:
      the updated flow builder.