
be.bagofwords.util.UnbufferedSocketConnection Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bow-utils Show documentation
Show all versions of bow-utils Show documentation
Utility classes that are used in the count-db project and other bow-* projects
The newest version!
package be.bagofwords.util;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import java.net.Socket;
/**
* Created by koen on 01.11.16.
*/
public class UnbufferedSocketConnection extends SocketConnection {
public UnbufferedSocketConnection(String host, int port) throws IOException {
this(new Socket(host, port));
}
public UnbufferedSocketConnection(Socket socket) throws IOException {
super(socket, new DataInputStream(socket.getInputStream()), new DataOutputStream(socket.getOutputStream()));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy