public class PipelineIOUtils extends Object
Constructor and Description |
---|
PipelineIOUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
writeByXStream(Object toWrite,
File location,
hudson.util.XStream2 xstream,
boolean atomicWrite)
Convenience method to transparently write data directly or atomicly using
AtomicFileWriter . |
public static void writeByXStream(@Nonnull Object toWrite, @Nonnull File location, @Nonnull hudson.util.XStream2 xstream, boolean atomicWrite) throws IOException
AtomicFileWriter
.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.IOException
Copyright © 2016–2018. All rights reserved.