Ecco:

codice:
				try
				{
					URL url = new URL (address);
					URLConnection connection = url.openConnection();
					connection.setDoInput (true);
					connection.setUseCaches (false);
					
					inputStream = connection.getInputStream();
					
					reader = new Scanner (inputStream);					
					
					while (reader.hasNext())
					{										
						String timeMillis = reader.next();
						String t = reader.next();
						String user = reader.next();
						String mess = reader.next();						

						if (timeMillis.compareTo (currentTimeMillis) > 0)
						{
							currentTimeMillis = timeMillis;
							if (t.equals ("all") && !user.equals (username) && !ignoredUsers.contains (user))
								mainTextArea.append (user.replace ("_", " ") + " > " + mess.replace ("_", " ") + "\n");
						}
					}
				}
				catch (Exception exception)
				{
					exception.printStackTrace();
				}
				finally
				{
					try
					{
						inputStream.close();
						reader.close();
					}
					catch (Exception exception)
					{
						exception.printStackTrace();
					}
				}