Modifier and Type | Field and Description |
---|---|
private java.nio.file.OpenOption[] |
options |
private java.nio.file.Path |
path |
Modifier | Constructor and Description |
---|---|
private |
PathByteSink(java.nio.file.Path path,
java.nio.file.OpenOption... options) |
Modifier and Type | Method and Description |
---|---|
java.io.OutputStream |
openStream()
Opens a new
OutputStream for writing to this sink. |
java.lang.String |
toString() |
asCharSink, openBufferedStream, write, writeFrom
private final java.nio.file.Path path
private final java.nio.file.OpenOption[] options
private PathByteSink(java.nio.file.Path path, java.nio.file.OpenOption... options)
public java.io.OutputStream openStream() throws java.io.IOException
ByteSink
OutputStream
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.
openStream
in class ByteSink
java.io.IOException
- if an I/O error occurs while opening the streampublic java.lang.String toString()
toString
in class java.lang.Object