Uses of Interface
com.google.common.io.OutputSupplier
-
Packages that use OutputSupplier Package Description com.google.common.io This package contains utility methods and classes for working with Java I/O; for example input streams, output streams, readers, writers, and files. -
-
Uses of OutputSupplier in com.google.common.io
Classes in com.google.common.io that implement OutputSupplier Modifier and Type Class Description classByteSinkA destination to which bytes can be written, such as a file.classCharSinkA destination to which characters can be written, such as a text file.Methods in com.google.common.io that return OutputSupplier Modifier and Type Method Description static OutputSupplier<java.io.FileOutputStream>Files. newOutputStreamSupplier(java.io.File file)Deprecated.Use#asByteSink(File).static OutputSupplier<java.io.FileOutputStream>Files. newOutputStreamSupplier(java.io.File file, boolean append)Deprecated.UseFiles.asByteSink(File, FileWriteMode...), passingFileWriteMode.APPENDfor append.static OutputSupplier<java.io.OutputStreamWriter>CharStreams. newWriterSupplier(OutputSupplier<? extends java.io.OutputStream> out, java.nio.charset.Charset charset)Deprecated.UseByteSink.asCharSink(Charset)instead.static OutputSupplier<java.io.OutputStreamWriter>Files. newWriterSupplier(java.io.File file, java.nio.charset.Charset charset)Deprecated.Use#asCharSink(File, Charset).static OutputSupplier<java.io.OutputStreamWriter>Files. newWriterSupplier(java.io.File file, java.nio.charset.Charset charset, boolean append)Deprecated.UseFiles.asCharSink(File, Charset, FileWriteMode...), passingFileWriteMode.APPENDfor append.Methods in com.google.common.io with parameters of type OutputSupplier Modifier and Type Method Description static ByteSinkByteStreams. asByteSink(OutputSupplier<? extends java.io.OutputStream> supplier)Deprecated.Convert allOutputSupplier<? extends OutputStream>implementations to extendByteSinkor provide a method for viewing the object as aByteSink.static CharSinkCharStreams. asCharSink(OutputSupplier<? extends java.lang.Appendable> supplier)Deprecated.Convert allOutputSupplier<? extends Appendable>implementations to extendCharSinkor provide a method for viewing the object as aCharSink.static OutputSupplier<java.io.OutputStreamWriter>CharStreams. newWriterSupplier(OutputSupplier<? extends java.io.OutputStream> out, java.nio.charset.Charset charset)Deprecated.UseByteSink.asCharSink(Charset)instead.
-