package tiles.refactor; import java.io.ObjectOutputStream; import java.net.Socket; import java.util.List; import tiles.refactor.beans.TilesDefinitionBean; public class TilesRefactor { public static void startTilesRefactor(List tilesBeans) throws Exception { Socket mClientSocket = null; try { mClientSocket = new Socket("localhost", 10001); ObjectOutputStream out = new ObjectOutputStream(mClientSocket.getOutputStream()); out.writeObject("tiles"); out.writeObject(tilesBeans); } finally { mClientSocket.close(); } } }