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 privatePathByteSink(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.OutputStreamopenStream()Opens a newOutputStreamfor writing to this sink.java.lang.StringtoString()-
Methods inherited from class com.google.common.io.ByteSink
asCharSink, openBufferedStream, write, writeFrom
-
-
-
-
Method Detail
-
openStream
public java.io.OutputStream openStream() throws java.io.IOExceptionDescription copied from class:ByteSinkOpens a newOutputStreamfor 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:
openStreamin classByteSink- Throws:
java.io.IOException- if an I/O error occurs while opening the stream
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-