Mercurial > 510Connectbot
comparison src/com/five_ten_sg/connectbot/transport/Telnet.java @ 12:6aaefb22d876 tn5250
adding tn5250 files
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Thu, 22 May 2014 18:41:36 -0700 |
parents | f3b3bbd227b8 |
children | b39bcf616a6f |
comparison
equal
deleted
inserted
replaced
11:f3b3bbd227b8 | 12:6aaefb22d876 |
---|---|
261 else { | 261 else { |
262 return String.format("%s:%d", hostname, port); | 262 return String.format("%s:%d", hostname, port); |
263 } | 263 } |
264 } | 264 } |
265 | 265 |
266 public static Uri getUri(String input) { | 266 public Uri getUri(String input) { |
267 Matcher matcher = hostmask.matcher(input); | 267 Matcher matcher = hostmask.matcher(input); |
268 | 268 |
269 if (!matcher.matches()) | 269 if (!matcher.matches()) |
270 return null; | 270 return null; |
271 | 271 |
335 port = DEFAULT_PORT; | 335 port = DEFAULT_PORT; |
336 | 336 |
337 selection.put(HostDatabase.FIELD_HOST_PORT, Integer.toString(port)); | 337 selection.put(HostDatabase.FIELD_HOST_PORT, Integer.toString(port)); |
338 } | 338 } |
339 | 339 |
340 public static String getFormatHint(Context context) { | 340 public String getFormatHint(Context context) { |
341 return String.format("%s:%s", | 341 return String.format("%s:%s", |
342 context.getString(R.string.format_hostname), | 342 context.getString(R.string.format_hostname), |
343 context.getString(R.string.format_port)); | 343 context.getString(R.string.format_port)); |
344 } | 344 } |
345 | 345 |