Write a Layer to an InputStream, File, or String.
void
write(Layer layer, java.io.OutputStream out)
write(Layer layer, java.io.File file)
java.lang.String
write(Layer layer)
Write the Layer to the OutputStream
layer
out
Write the Layer to the File
file
Write the Layer to a String
Groovy Documentation