diff src/ch/ethz/ssh2/LocalPortForwarder.java @ 307:071eccdff8ea ganymed

fix java formatting
author Carl Byington <carl@five-ten-sg.com>
date Wed, 30 Jul 2014 14:16:58 -0700
parents 91a31873c42a
children
line wrap: on
line diff
--- a/src/ch/ethz/ssh2/LocalPortForwarder.java	Wed Jul 30 12:09:51 2014 -0700
+++ b/src/ch/ethz/ssh2/LocalPortForwarder.java	Wed Jul 30 14:16:58 2014 -0700
@@ -17,60 +17,53 @@
  * port via the secure tunnel to another host (which may or may not be identical
  * to the remote SSH-2 server). Checkout {@link Connection#createLocalPortForwarder(int, String, int)}
  * on how to create one.
- * 
+ *
  * @author Christian Plattner
  * @version 2.50, 03/15/10
  */
-public class LocalPortForwarder
-{
-	final ChannelManager cm;
+public class LocalPortForwarder {
+    final ChannelManager cm;
 
-	final String host_to_connect;
+    final String host_to_connect;
 
-	final int port_to_connect;
+    final int port_to_connect;
 
-	final LocalAcceptThread lat;
+    final LocalAcceptThread lat;
 
-	LocalPortForwarder(ChannelManager cm, int local_port, String host_to_connect, int port_to_connect)
-			throws IOException
-	{
-		this.cm = cm;
-		this.host_to_connect = host_to_connect;
-		this.port_to_connect = port_to_connect;
-
-		lat = new LocalAcceptThread(cm, local_port, host_to_connect, port_to_connect);
-		lat.setDaemon(true);
-		lat.start();
-	}
+    LocalPortForwarder(ChannelManager cm, int local_port, String host_to_connect, int port_to_connect)
+    throws IOException {
+        this.cm = cm;
+        this.host_to_connect = host_to_connect;
+        this.port_to_connect = port_to_connect;
+        lat = new LocalAcceptThread(cm, local_port, host_to_connect, port_to_connect);
+        lat.setDaemon(true);
+        lat.start();
+    }
 
-	LocalPortForwarder(ChannelManager cm, InetSocketAddress addr, String host_to_connect, int port_to_connect)
-			throws IOException
-	{
-		this.cm = cm;
-		this.host_to_connect = host_to_connect;
-		this.port_to_connect = port_to_connect;
-
-		lat = new LocalAcceptThread(cm, addr, host_to_connect, port_to_connect);
-		lat.setDaemon(true);
-		lat.start();
-	}
+    LocalPortForwarder(ChannelManager cm, InetSocketAddress addr, String host_to_connect, int port_to_connect)
+    throws IOException {
+        this.cm = cm;
+        this.host_to_connect = host_to_connect;
+        this.port_to_connect = port_to_connect;
+        lat = new LocalAcceptThread(cm, addr, host_to_connect, port_to_connect);
+        lat.setDaemon(true);
+        lat.start();
+    }
 
-	/**
-	 * Return the local socket address of the {@link ServerSocket} used to accept connections.
-	 * @return
-	 */
-	public InetSocketAddress getLocalSocketAddress()
-	{
-		return (InetSocketAddress) lat.getServerSocket().getLocalSocketAddress();
-	}
+    /**
+     * Return the local socket address of the {@link ServerSocket} used to accept connections.
+     * @return
+     */
+    public InetSocketAddress getLocalSocketAddress() {
+        return (InetSocketAddress) lat.getServerSocket().getLocalSocketAddress();
+    }
 
-	/**
-	 * Stop TCP/IP forwarding of newly arriving connections.
-	 * 
-	 * @throws IOException
-	 */
-	public void close() throws IOException
-	{
-		lat.stopWorking();
-	}
+    /**
+     * Stop TCP/IP forwarding of newly arriving connections.
+     *
+     * @throws IOException
+     */
+    public void close() throws IOException {
+        lat.stopWorking();
+    }
 }