~jcsirot/gliese/trunk

« back to all changes in this revision

Viewing changes to src/org/xulfactory/gliese/Gliese.java

  • Committer: Jean-Christophe Sirot
  • Date: 2009-08-11 18:49:44 UTC
  • Revision ID: sirot@xulfactory.org-20090811184944-lvzltxe52kui2x7a
Code refactoring to a full asynchronous library.

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
 */
25
25
public final class Gliese
26
26
{
27
 
        public static SSHConnection openConnection(String host) throws IOException
 
27
        public static SSHConnection openConnection(String host) throws SSHException, IOException
28
28
        {
29
29
                return openConnection(host, 22);
30
30
        }
31
31
 
32
32
        public static SSHConnection openConnection(String host, int port)
33
 
                        throws IOException
 
33
                        throws SSHException, IOException
34
34
        {
35
35
                SSHConnection con = new SSHConnection(host, port);
36
36
                return con;