Class PipelineIOUtils

java.lang.Object
org.jenkinsci.plugins.workflow.support.PipelineIOUtils

public class PipelineIOUtils extends Object
Utilities to assist with IO and in some cases improve performance specifically for pipeline.
  • Constructor Details

    • PipelineIOUtils

      public PipelineIOUtils()
  • Method Details

    • writeByXStream

      public static void writeByXStream(@NonNull Object toWrite, @NonNull File location, @NonNull XStream2 xstream, boolean atomicWrite) throws IOException
      Convenience method to transparently write data directly or atomicly using AtomicFileWriter.
      Parameters:
      toWrite - Object to write to file
      location - File to write object to
      xstream - xstream to use for output
      atomicWrite - If true, do an atomic write, otherwise do a direct write to file.
      Throws:
      IOException