Package com.google.common.io
Class MoreFiles.PathByteSink
- java.lang.Object
-
- com.google.common.io.ByteSink
-
- com.google.common.io.MoreFiles.PathByteSink
-
-
Constructor Summary
Constructors Modifier Constructor Description private
PathByteSink(java.nio.file.Path path, java.nio.file.OpenOption... options)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.io.OutputStream
openStream()
Opens a newOutputStream
for writing to this sink.java.lang.String
toString()
-
Methods inherited from class com.google.common.io.ByteSink
asCharSink, openBufferedStream, write, writeFrom
-
-
-
-
Method Detail
-
openStream
public java.io.OutputStream openStream() throws java.io.IOException
Description copied from class:ByteSink
Opens a newOutputStream
for writing to this sink. This method returns a new, independent stream each time it is called.The caller is responsible for ensuring that the returned stream is closed.
- Specified by:
openStream
in classByteSink
- Throws:
java.io.IOException
- if an I/O error occurs while opening the stream
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-