public final class OutputStreamTo extends OutputStream
OutputStream
.
There is no thread-safety guarantee.
Constructor and Description |
---|
OutputStreamTo(File file)
Ctor.
|
OutputStreamTo(Output output)
Ctor.
|
OutputStreamTo(Path path)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
write(byte[] buffer) |
void |
write(byte[] buffer,
int offset,
int length) |
void |
write(int data) |
flush
public OutputStreamTo(Path path)
path
- The pathpublic OutputStreamTo(File file)
file
- The filepublic OutputStreamTo(Output output)
output
- The inputpublic void write(int data) throws IOException
write
in class OutputStream
IOException
public void write(byte[] buffer) throws IOException
write
in class OutputStream
IOException
public void write(byte[] buffer, int offset, int length) throws IOException
write
in class OutputStream
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class OutputStream
IOException
Copyright © 2017 Cactoos. All rights reserved.