Mercurial > 510Connectbot
comparison src/com/five_ten_sg/connectbot/transport/Local.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 | 0ce5cc452d02 |
children | 139394237973 |
comparison
equal
deleted
inserted
replaced
11:f3b3bbd227b8 | 12:6aaefb22d876 |
---|---|
185 public void write(int c) throws IOException { | 185 public void write(int c) throws IOException { |
186 if (os != null) | 186 if (os != null) |
187 os.write(c); | 187 os.write(c); |
188 } | 188 } |
189 | 189 |
190 public static Uri getUri(String input) { | 190 public Uri getUri(String input) { |
191 Uri uri = Uri.parse(DEFAULT_URI); | 191 Uri uri = Uri.parse(DEFAULT_URI); |
192 | 192 |
193 if (input != null && input.length() > 0) { | 193 if (input != null && input.length() > 0) { |
194 uri = uri.buildUpon().fragment(input).build(); | 194 uri = uri.buildUpon().fragment(input).build(); |
195 } | 195 } |
218 public void getSelectionArgs(Uri uri, Map<String, String> selection) { | 218 public void getSelectionArgs(Uri uri, Map<String, String> selection) { |
219 selection.put(HostDatabase.FIELD_HOST_PROTOCOL, PROTOCOL); | 219 selection.put(HostDatabase.FIELD_HOST_PROTOCOL, PROTOCOL); |
220 selection.put(HostDatabase.FIELD_HOST_NICKNAME, uri.getFragment()); | 220 selection.put(HostDatabase.FIELD_HOST_NICKNAME, uri.getFragment()); |
221 } | 221 } |
222 | 222 |
223 public static String getFormatHint(Context context) { | 223 public String getFormatHint(Context context) { |
224 return context.getString(R.string.hostpref_nickname_title); | 224 return context.getString(R.string.hostpref_nickname_title); |
225 } | 225 } |
226 | 226 |
227 /* (non-Javadoc) | |
228 * @see com.five_ten_sg.connectbot.transport.AbsTransport#usesNetwork() | |
229 */ | |
230 @Override | 227 @Override |
231 public boolean usesNetwork() { | 228 public boolean usesNetwork() { |
232 return false; | 229 return false; |
233 } | 230 } |
234 } | 231 } |