| 
 | ||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
| Packages that use OutputSupplier | |
|---|---|
| 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 | 
|---|
| Methods in com.google.common.io that return OutputSupplier | |
|---|---|
| static OutputSupplier<FileOutputStream> | Files.newOutputStreamSupplier(File file)Returns a factory that will supply instances of FileOutputStreamthat write to a file. | 
| static OutputSupplier<FileOutputStream> | Files.newOutputStreamSupplier(File file,
                                               boolean append)Returns a factory that will supply instances of FileOutputStreamthat write to or append to a file. | 
| static OutputSupplier<OutputStreamWriter> | Files.newWriterSupplier(File file,
                                   Charset charset)Returns a factory that will supply instances of OutputStreamWriterthat write to a file using the given character set. | 
| static OutputSupplier<OutputStreamWriter> | Files.newWriterSupplier(File file,
                                   Charset charset,
                                   boolean append)Returns a factory that will supply instances of OutputStreamWriterthat write to or append to a file using the given character set. | 
| static OutputSupplier<OutputStreamWriter> | CharStreams.newWriterSupplier(OutputSupplier<? extends OutputStream> out,
                                   Charset charset)Returns a factory that will supply instances of OutputStreamWriter,
 using the givenOutputStreamfactory and character set. | 
| Methods in com.google.common.io with parameters of type OutputSupplier | ||
|---|---|---|
| static
 | Files.copy(File from,
         Charset charset,
         OutputSupplier<W> to)Copies all characters from a file to a Appendable&Closeableobject supplied by a factory, using the given
 character set. | |
| static void | Files.copy(File from,
         OutputSupplier<? extends OutputStream> to)Copies all bytes from a file to an OutputStreamsupplied by
 a factory. | |
| static long | ByteStreams.copy(InputStream from,
         OutputSupplier<? extends OutputStream> to)Opens an output stream from the supplier, copies all bytes from the input to the output, and closes the output stream. | |
| static long | ByteStreams.copy(InputSupplier<? extends InputStream> from,
         OutputSupplier<? extends OutputStream> to)Opens input and output streams from the given suppliers, copies all bytes from the input to the output, and closes the streams. | |
| static
 | CharStreams.copy(InputSupplier<R> from,
         OutputSupplier<W> to)Opens ReadableandAppendableobjects from the
 given factories, copies all characters between the two, and closes
 them. | |
| static OutputSupplier<OutputStreamWriter> | CharStreams.newWriterSupplier(OutputSupplier<? extends OutputStream> out,
                                   Charset charset)Returns a factory that will supply instances of OutputStreamWriter,
 using the givenOutputStreamfactory and character set. | |
| static void | ByteStreams.write(byte[] from,
           OutputSupplier<? extends OutputStream> to)Writes a byte array to an output stream from the given supplier. | |
| static
 | CharStreams.write(CharSequence from,
           OutputSupplier<W> to)Writes a character sequence (such as a string) to an appendable object from the given supplier. | |
| 
 | ||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||