001package edu.wpi.first.wpilibj.networktables2.stream; 002 003import java.io.*; 004 005/** 006 * 007 * @author mwills 008 * 009 */ 010public class SocketStreamFactory implements IOStreamFactory{ 011 012 private final String host; 013 private final int port; 014 015 public SocketStreamFactory(String host, int port) throws IOException { 016 this.host = host; 017 this.port = port; 018 } 019 020 public IOStream createStream() throws IOException { 021 return new SocketStream(host, port); 022 } 023 024}