/** * Returns a factory that will supply instances of {@link FileOutputStream} * that write to or append to a file. * * @param file the file to write to * @param append if true, the encoded characters will be appended to the file; * otherwise the file is overwritten * @return the factory * @deprecated Use {@link #asByteSink(File, FileWriteMode...)}, passing * {@link FileWriteMode#APPEND} for append. This method is scheduled for * removal in Guava 18.0. */ @Deprecated public static OutputSupplier<FileOutputStream> newOutputStreamSupplier( final File file, final boolean append) { return ByteStreams.asOutputSupplier(asByteSink(file, modes(append))); }
/** * Returns a factory that will supply instances of {@link FileOutputStream} * that write to or append to a file. * * @param file the file to write to * @param append if true, the encoded characters will be appended to the file; * otherwise the file is overwritten * @return the factory * @deprecated Use {@link #asByteSink(File, FileWriteMode...)}, passing * {@link FileWriteMode#APPEND} for append. This method is scheduled for * removal in Guava 18.0. */ @Deprecated public static OutputSupplier<FileOutputStream> newOutputStreamSupplier( final File file, final boolean append) { return ByteStreams.asOutputSupplier(asByteSink(file, modes(append))); }
/** * Returns a factory that will supply instances of {@link FileOutputStream} * that write to or append to a file. * * @param file the file to write to * @param append if true, the encoded characters will be appended to the file; * otherwise the file is overwritten * @return the factory */ public static OutputSupplier<FileOutputStream> newOutputStreamSupplier( final File file, final boolean append) { return ByteStreams.asOutputSupplier(asByteSink(file, modes(append))); }
/** * Returns a factory that will supply instances of {@link FileOutputStream} * that write to or append to a file. * * @param file the file to write to * @param append if true, the encoded characters will be appended to the file; * otherwise the file is overwritten * @return the factory */ public static OutputSupplier<FileOutputStream> newOutputStreamSupplier( final File file, final boolean append) { return ByteStreams.asOutputSupplier(asByteSink(file, modes(append))); }
/** * Returns a factory that will supply instances of {@link FileOutputStream} * that write to or append to a file. * * @param file the file to write to * @param append if true, the encoded characters will be appended to the file; * otherwise the file is overwritten * @return the factory */ public static OutputSupplier<FileOutputStream> newOutputStreamSupplier( final File file, final boolean append) { return ByteStreams.asOutputSupplier(asByteSink(file, modes(append))); }
/** * Returns a factory that will supply instances of {@link FileOutputStream} * that write to or append to a file. * * @param file the file to write to * @param append if true, the encoded characters will be appended to the file; * otherwise the file is overwritten * @return the factory */ public static OutputSupplier<FileOutputStream> newOutputStreamSupplier( final File file, final boolean append) { return ByteStreams.asOutputSupplier(asByteSink(file, modes(append))); }
/** * Returns a factory that will supply instances of {@link FileOutputStream} * that write to or append to a file. * * @param file the file to write to * @param append if true, the encoded characters will be appended to the file; * otherwise the file is overwritten * @return the factory */ public static OutputSupplier<FileOutputStream> newOutputStreamSupplier( final File file, final boolean append) { return ByteStreams.asOutputSupplier(asByteSink(file, modes(append))); }