Class PipelineIOUtils
java.lang.Object
org.jenkinsci.plugins.workflow.support.PipelineIOUtils
Utilities to assist with IO and in some cases improve performance specifically for pipeline.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
writeByXStream
(Object toWrite, File location, XStream2 xstream, boolean atomicWrite) Convenience method to transparently write data directly or atomicly usingAtomicFileWriter
.
-
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 usingAtomicFileWriter
.- Parameters:
toWrite
- Object to write to filelocation
- File to write object toxstream
- xstream to use for outputatomicWrite
- If true, do an atomic write, otherwise do a direct write to file.- Throws:
IOException
-