de.gesellix.docker.client.filesocket.NamedPipeDelegatingOutputStream Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of docker-filesocket Show documentation
Show all versions of docker-filesocket Show documentation
Unix Domain Sockets and Named Pipes for the JVM on Linux, macOS, and Windows
The newest version!
package de.gesellix.docker.client.filesocket;
import java.io.IOException;
import java.io.OutputStream;
import java.io.RandomAccessFile;
class NamedPipeDelegatingOutputStream extends OutputStream {
private final RandomAccessFile namedPipe;
public NamedPipeDelegatingOutputStream(RandomAccessFile namedPipe) {
this.namedPipe = namedPipe;
}
@Override
public void write(int b) throws IOException {
namedPipe.write(b);
}
@Override
public void write(byte[] b) throws IOException {
namedPipe.write(b);
}
@Override
public void write(byte[] b, int off, int len) throws IOException {
namedPipe.write(b, off, len);
}
@Override
public void close() throws IOException {
namedPipe.close();
super.close();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy