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 class
ByteSink
A destination to which bytes can be written, such as a file.class
CharSink
A 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.APPEND
for 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.APPEND
for append.Methods in com.google.common.io with parameters of type OutputSupplier Modifier and Type Method Description static ByteSink
ByteStreams. asByteSink(OutputSupplier<? extends java.io.OutputStream> supplier)
Deprecated.Convert allOutputSupplier<? extends OutputStream>
implementations to extendByteSink
or provide a method for viewing the object as aByteSink
.static CharSink
CharStreams. asCharSink(OutputSupplier<? extends java.lang.Appendable> supplier)
Deprecated.Convert allOutputSupplier<? extends Appendable>
implementations to extendCharSink
or 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.
-