Sha256: 92f0499b268ef2c51bf3ca66a26881f34a12c16d2f9c5523f4d65a7c45471294
Contents?: true
Size: 1.54 KB
Versions: 3
Compression:
Stored size: 1.54 KB
Contents
/* -*- mode: java; c-basic-offset: 2; indent-tabs-mode: nil -*- */ /* Part of the Processing project - http://processing.org Copyright (c) 2012-18 The Processing Foundation Copyright (c) 2004-12 Ben Fry and Casey Reas Copyright (c) 2001-04 Massachusetts Institute of Technology This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, version 2.1. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ package processing.core.util.image.save; import java.io.BufferedOutputStream; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.OutputStream; /** * Common convenience functions for file saving. */ public class ImageSaveUtil { /** * Create an output stream for a file. * * @param filename The filename at which the output stream should be created. * @return The newly created output stream. */ public static OutputStream createForFile(String filename) throws FileNotFoundException { return new BufferedOutputStream(new FileOutputStream(filename), 32768); } }
Version data entries
3 entries across 3 versions & 1 rubygems