Browse Source

Style fixes

Change-Id: I02624534372366bda5ad9ebc19d2cedbc774449d
Reviewed-on: http://gerrit.dmdirc.com/1324
Automatic-Compile: DMDirc Local Commits <dmdirc@googlemail.com>
Reviewed-by: Chris Smith <chris@dmdirc.com>
tags/0.6.4
Greg Holmes 14 years ago
parent
commit
b38d71f21a

+ 21
- 18
src/com/dmdirc/parser/common/CallbackNotFoundException.java View File

@@ -1,16 +1,16 @@
1 1
 /*
2 2
  * Copyright (c) 2006-2010 Chris Smith, Shane Mc Cormack, Gregory Holmes
3
- *
3
+ * 
4 4
  * Permission is hereby granted, free of charge, to any person obtaining a copy
5 5
  * of this software and associated documentation files (the "Software"), to deal
6 6
  * in the Software without restriction, including without limitation the rights
7 7
  * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8 8
  * copies of the Software, and to permit persons to whom the Software is
9 9
  * furnished to do so, subject to the following conditions:
10
- *
10
+ * 
11 11
  * The above copyright notice and this permission notice shall be included in
12 12
  * all copies or substantial portions of the Software.
13
- *
13
+ * 
14 14
  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15 15
  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16 16
  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
@@ -24,22 +24,25 @@ package com.dmdirc.parser.common;
24 24
 
25 25
 /**
26 26
  * IRC Parser Callback Exception.
27
- *
28
- * @author            Shane Mc Cormack
27
+ * 
28
+ * @author Shane Mc Cormack
29 29
  */
30 30
 public class CallbackNotFoundException extends RuntimeException {
31
-	/**
32
-	 * A version number for this class. It should be changed whenever the class
33
-	 * structure is changed (or anything else that would prevent serialized
34
-	 * objects being unserialized with the new class).
35
-	 */
36
-	private static final long serialVersionUID = 1;
37
-	
38
-	/**
39
-	 * Create a new CallbackNotFound Exception.
40
-	 *
41
-	 * @param message Reason for exception
42
-	 */
43
-	public CallbackNotFoundException(final String message) { super(message); }
31
+    /**
32
+     * A version number for this class. It should be changed whenever the class
33
+     * structure is changed (or anything else that would prevent serialized
34
+     * objects being unserialized with the new class).
35
+     */
36
+    private static final long serialVersionUID = 1;
37
+
38
+    /**
39
+     * Create a new CallbackNotFound Exception.
40
+     * 
41
+     * @param message
42
+     *            Reason for exception
43
+     */
44
+    public CallbackNotFoundException(final String message) {
45
+        super(message);
46
+    }
44 47
 
45 48
 }

+ 71
- 60
src/com/dmdirc/parser/common/ChannelListModeItem.java View File

@@ -1,16 +1,16 @@
1 1
 /*
2 2
  * Copyright (c) 2006-2010 Chris Smith, Shane Mc Cormack, Gregory Holmes
3
- *
3
+ * 
4 4
  * Permission is hereby granted, free of charge, to any person obtaining a copy
5 5
  * of this software and associated documentation files (the "Software"), to deal
6 6
  * in the Software without restriction, including without limitation the rights
7 7
  * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8 8
  * copies of the Software, and to permit persons to whom the Software is
9 9
  * furnished to do so, subject to the following conditions:
10
- *
10
+ * 
11 11
  * The above copyright notice and this permission notice shall be included in
12 12
  * all copies or substantial portions of the Software.
13
- *
13
+ * 
14 14
  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15 15
  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16 16
  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
@@ -22,6 +22,8 @@
22 22
 
23 23
 package com.dmdirc.parser.common;
24 24
 
25
+import com.dmdirc.parser.irc.IRCParser;
26
+
25 27
 /**
26 28
  * Contains Channel List Mode information.
27 29
  * 
@@ -31,63 +33,72 @@ package com.dmdirc.parser.common;
31 33
  */
32 34
 public final class ChannelListModeItem {
33 35
 
34
-	/** The Item itself. */
35
-	private final String myItem;
36
-	
37
-	/** The Time the item was created. */
38
-	private final long myTime;
39
-	
40
-	/** The Person who created the item. */
41
-	private final String myOwner;
42
-	
43
-	/**
44
-	 * Create a new Item.
45
-	 *
46
-	 * @param item The item (ie: test!joe@user.com)
47
-	 * @param owner The owner (ie: Dataforce)
48
-	 * @param time The Time (ie: 1173389295)
49
-	 */
50
-	public ChannelListModeItem(final String item, final String owner, final long time) {
51
-		myItem = item;
52
-		myTime = time;
36
+    /** The Item itself. */
37
+    private final String myItem;
53 38
 
54
-		if (!owner.isEmpty() && owner.charAt(0) == ':') {
55
-			myOwner = owner.substring(1);
56
-		} else {
57
-			myOwner = owner;
58
-		}
59
-	}
60
-	
61
-	/**
62
-	 * Get The Item itself.
63
-	 *
64
-	 * @return The Item itself.
65
-	 */
66
-	public String getItem() { return myItem; }
67
-	
68
-	/**
69
-	 * Get The Person who created the item.
70
-	 *
71
-	 * @return The Person who created the item.
72
-	 */
73
-	public String getOwner() { return myOwner; }
74
-	
75
-	/**
76
-	 * Get The Time the item was created.
77
-	 *
78
-	 * @return The Time the item was created.
79
-	 */
80
-	public long getTime() { return myTime; }
81
-	
82
-	/**
83
-	* Returns a String representation of this object.
84
-	*
85
-	* @return String representation of this object
86
-	*/
87
-	@Override
88
-	public String toString() {
89
-		return getItem();
90
-	}
39
+    /** The Time the item was created. */
40
+    private final long myTime;
91 41
 
92
-}
42
+    /** The Person who created the item. */
43
+    private final String myOwner;
44
+
45
+    /**
46
+     * Create a new Item.
47
+     * 
48
+     * @param item
49
+     *            The item (ie: test!joe@user.com)
50
+     * @param owner
51
+     *            The owner (ie: Dataforce)
52
+     * @param time
53
+     *            The Time (ie: 1173389295)
54
+     */
55
+    public ChannelListModeItem(final String item, final String owner,
56
+            final long time) {
57
+        myItem = item;
58
+        myTime = time;
93 59
 
60
+        if (!owner.isEmpty() && owner.charAt(0) == ':') {
61
+            myOwner = owner.substring(1);
62
+        } else {
63
+            myOwner = owner;
64
+        }
65
+    }
66
+
67
+    /**
68
+     * Get The Item itself.
69
+     * 
70
+     * @return The Item itself.
71
+     */
72
+    public String getItem() {
73
+        return myItem;
74
+    }
75
+
76
+    /**
77
+     * Get The Person who created the item.
78
+     * 
79
+     * @return The Person who created the item.
80
+     */
81
+    public String getOwner() {
82
+        return myOwner;
83
+    }
84
+
85
+    /**
86
+     * Get The Time the item was created.
87
+     * 
88
+     * @return The Time the item was created.
89
+     */
90
+    public long getTime() {
91
+        return myTime;
92
+    }
93
+
94
+    /**
95
+     * Returns a String representation of this object.
96
+     * 
97
+     * @return String representation of this object
98
+     */
99
+    @Override
100
+    public String toString() {
101
+        return getItem();
102
+    }
103
+
104
+}

+ 39
- 37
src/com/dmdirc/parser/common/MyInfo.java View File

@@ -1,16 +1,16 @@
1 1
 /*
2 2
  * Copyright (c) 2006-2010 Chris Smith, Shane Mc Cormack, Gregory Holmes
3
- *
3
+ * 
4 4
  * Permission is hereby granted, free of charge, to any person obtaining a copy
5 5
  * of this software and associated documentation files (the "Software"), to deal
6 6
  * in the Software without restriction, including without limitation the rights
7 7
  * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8 8
  * copies of the Software, and to permit persons to whom the Software is
9 9
  * furnished to do so, subject to the following conditions:
10
- *
10
+ * 
11 11
  * The above copyright notice and this permission notice shall be included in
12 12
  * all copies or substantial portions of the Software.
13
- *
13
+ * 
14 14
  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15 15
  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16 16
  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
@@ -22,6 +22,8 @@
22 22
 
23 23
 package com.dmdirc.parser.common;
24 24
 
25
+import com.dmdirc.parser.irc.IRCParser;
26
+
25 27
 /**
26 28
  * Contains User information.
27 29
  * 
@@ -52,23 +54,23 @@ public class MyInfo {
52 54
      * Create a new MyInfo object.
53 55
      */
54 56
     public MyInfo() {
55
-	String result;
56
-	try {
57
-	    result = System.getProperty("user.name");
58
-	} catch (SecurityException e) {
59
-	    result = null;
60
-	}
61
-	if (result == null || result.isEmpty()) {
62
-	    nickname = "IRCParser";
63
-	    username = "IRCParser";
64
-	    realname = "DMDIrc IRCParser";
65
-	    altNickname = "IRC-Parser";
66
-	} else {
67
-	    nickname = result;
68
-	    username = nickname;
69
-	    realname = nickname + " - DMDIrc";
70
-	    altNickname = nickname + "-";
71
-	}
57
+        String result;
58
+        try {
59
+            result = System.getProperty("user.name");
60
+        } catch (final SecurityException e) {
61
+            result = null;
62
+        }
63
+        if (result == null || result.isEmpty()) {
64
+            nickname = "IRCParser";
65
+            username = "IRCParser";
66
+            realname = "DMDIrc IRCParser";
67
+            altNickname = "IRC-Parser";
68
+        } else {
69
+            nickname = result;
70
+            username = nickname;
71
+            realname = nickname + " - DMDIrc";
72
+            altNickname = nickname + "-";
73
+        }
72 74
     }
73 75
 
74 76
     /**
@@ -78,9 +80,9 @@ public class MyInfo {
78 80
      *            Value to set to.
79 81
      */
80 82
     public void setNickname(final String newValue) {
81
-	if (newValue != null && !newValue.isEmpty()) {
82
-	    nickname = newValue;
83
-	}
83
+        if (newValue != null && !newValue.isEmpty()) {
84
+            nickname = newValue;
85
+        }
84 86
     }
85 87
 
86 88
     /**
@@ -89,7 +91,7 @@ public class MyInfo {
89 91
      * @return Current Nickname
90 92
      */
91 93
     public String getNickname() {
92
-	return nickname;
94
+        return nickname;
93 95
     }
94 96
 
95 97
     /**
@@ -99,9 +101,9 @@ public class MyInfo {
99 101
      *            Value to set to.
100 102
      */
101 103
     public void setAltNickname(final String newValue) {
102
-	if (newValue != null && !newValue.isEmpty()) {
103
-	    altNickname = newValue;
104
-	}
104
+        if (newValue != null && !newValue.isEmpty()) {
105
+            altNickname = newValue;
106
+        }
105 107
     }
106 108
 
107 109
     /**
@@ -110,7 +112,7 @@ public class MyInfo {
110 112
      * @return Current Nickname
111 113
      */
112 114
     public String getAltNickname() {
113
-	return altNickname;
115
+        return altNickname;
114 116
     }
115 117
 
116 118
     /**
@@ -120,9 +122,9 @@ public class MyInfo {
120 122
      *            Value to set to.
121 123
      */
122 124
     public void setRealname(final String newValue) {
123
-	if (newValue != null && !newValue.isEmpty()) {
124
-	    realname = newValue;
125
-	}
125
+        if (newValue != null && !newValue.isEmpty()) {
126
+            realname = newValue;
127
+        }
126 128
     }
127 129
 
128 130
     /**
@@ -131,7 +133,7 @@ public class MyInfo {
131 133
      * @return Current Realname
132 134
      */
133 135
     public String getRealname() {
134
-	return realname;
136
+        return realname;
135 137
     }
136 138
 
137 139
     /**
@@ -141,8 +143,8 @@ public class MyInfo {
141 143
      *            Value to set to.
142 144
      */
143 145
     public void setUsername(final String newValue) {
144
-	if (newValue != null && !newValue.isEmpty()) {
145
-	    username = newValue;
146
+        if (newValue != null && !newValue.isEmpty()) {
147
+            username = newValue;
146 148
         }
147 149
     }
148 150
 
@@ -152,7 +154,7 @@ public class MyInfo {
152 154
      * @return Current Username
153 155
      */
154 156
     public String getUsername() {
155
-	return username;
157
+        return username;
156 158
     }
157 159
 
158 160
     /**
@@ -162,7 +164,7 @@ public class MyInfo {
162 164
      *            Value to set to.
163 165
      */
164 166
     public void setPrependChar(final char newValue) {
165
-	prependChar = newValue;
167
+        prependChar = newValue;
166 168
     }
167 169
 
168 170
     /**
@@ -171,7 +173,7 @@ public class MyInfo {
171 173
      * @return Current Prepend Character
172 174
      */
173 175
     public char getPrependChar() {
174
-	return prependChar;
176
+        return prependChar;
175 177
     }
176 178
 
177 179
 }

+ 160
- 149
src/com/dmdirc/parser/common/ParserError.java View File

@@ -1,16 +1,16 @@
1 1
 /*
2 2
  * Copyright (c) 2006-2010 Chris Smith, Shane Mc Cormack, Gregory Holmes
3
- *
3
+ * 
4 4
  * Permission is hereby granted, free of charge, to any person obtaining a copy
5 5
  * of this software and associated documentation files (the "Software"), to deal
6 6
  * in the Software without restriction, including without limitation the rights
7 7
  * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8 8
  * copies of the Software, and to permit persons to whom the Software is
9 9
  * furnished to do so, subject to the following conditions:
10
- *
10
+ * 
11 11
  * The above copyright notice and this permission notice shall be included in
12 12
  * all copies or substantial portions of the Software.
13
- *
13
+ * 
14 14
  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15 15
  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16 16
  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
@@ -24,154 +24,165 @@ package com.dmdirc.parser.common;
24 24
 
25 25
 /**
26 26
  * IRC Parser Error.
27
- *
27
+ * 
28 28
  * @author Shane Mc Cormack
29 29
  */
30 30
 public final class ParserError {
31
-	/** Error is potentially Fatal, Desync 99% Guaranteed! */
32
-	public static final int ERROR_FATAL = 1;
33
-	/** Error is not fatal, but is more severe than a warning. */
34
-	public static final int ERROR_ERROR = 2;
35
-	/** Error was an unexpected occurance, but shouldn't be anything to worry about. */
36
-	public static final int ERROR_WARNING = 4;
37
-	/** Error is a user-error rather than a server error. */
38
-	public static final int ERROR_USER = 8;
39
-	/** Error was an exception from elsewhere. */
40
-	public static final int ERROR_EXCEPTION = 16;
41
-	
42
-	/** Store the Error level. */
43
-	private int errorLevel;
44
-	/** Store the Error Information. */
45
-	private String errorData;
46
-	/** Store the Exception object. */
47
-	private Exception exceptionInfo;
48
-	
49
-	/** Last line of server input before this exception was triggered. */
50
-	private String lastLine = "";
51
-	
52
-	/**
53
-	 * Create a new Error.
54
-	 *
55
-	 * @param level Set the error level.
56
-	 * @param data String containing information about the error.
57
-	 * @param line The last line of data recieved from the server before this exception.
58
-	 */
59
-	public ParserError(final int level, final String data, final String line) {
60
-		errorData = data;
61
-		errorLevel = level;
62
-		lastLine = line;
63
-	}
64
-	
65
-	/**
66
-	 * Check if this error is considered Fatal.
67
-	 *
68
-	 * @return Returns true for a fatal error, false for a non-fatal error
69
-	 */
70
-	public boolean isFatal() {
71
-		return (errorLevel & ERROR_FATAL) == ERROR_FATAL;
72
-	}
73
-	
74
-	/**
75
-	 * Check if this error is considered an error (less severe than fatal, worse than warning).
76
-	 *
77
-	 * @return Returns true for an "Error" level error, else false.
78
-	 */
79
-	public boolean isError() {
80
-		return (errorLevel & ERROR_ERROR) == ERROR_ERROR;
81
-	}
82
-	
83
-	/**
84
-	 * Check if this error is considered a warning.
85
-	 *
86
-	 * @return Returns true for a warning, else false.
87
-	 */
88
-	public boolean isWarning() {
89
-		return (errorLevel & ERROR_WARNING) == ERROR_WARNING;
90
-	}
91
-	
92
-	/**
93
-	 * Check if this error is considered a user-error rather than a server error.
94
-	 * For DMDirc this will cause the error not to be reported to the developers
95
-	 *
96
-	 * @return Returns true for a user error, else false.
97
-	 */
98
-	public boolean isUserError() {
99
-		return (errorLevel & ERROR_USER) == ERROR_USER;
100
-	}
101
-	
102
-	/**
103
-	 * Check if this error was generated from an exception.
104
-	 *
105
-	 * @return Returns true if getException will return an exception.
106
-	 */
107
-	public boolean isException() {
108
-		return (errorLevel & ERROR_EXCEPTION) == ERROR_EXCEPTION;
109
-	}
110
-	
111
-	/**
112
-	 * Check if this error has a lastLine parameter.
113
-	 *
114
-	 * @return Returns true if getLastLine returns anything non null, non empty.
115
-	 */
116
-	public boolean hasLastLine() {
117
-		return (lastLine != null && !lastLine.isEmpty());
118
-	}
119
-	
120
-	/**
121
-	 * Set the Exception object.
122
-	 *
123
-	 * @param newException The exception object to store
124
-	 */
125
-	public void setException(final Exception newException) {
126
-		exceptionInfo = newException;
127
-		if (!this.isException()) {
128
-			this.errorLevel = this.errorLevel + ERROR_EXCEPTION;
129
-		}
130
-	}
131
-	
132
-	/**
133
-	 * Get the Exception object.
134
-	 *
135
-	 * @return Returns the exception object
136
-	 */
137
-	public Exception getException() {
138
-		return exceptionInfo;
139
-	}
140
-	
141
-	/**
142
-	 * Get the full ErrorLevel.
143
-	 *
144
-	 * @return Returns the error level
145
-	 */
146
-	public int getLevel() {
147
-		return errorLevel;
148
-	}
149
-	
150
-	/**
151
-	 * Get the Error information.
152
-	 *
153
-	 * @return Returns the error data
154
-	 */
155
-	public String getData() {
156
-		return errorData;
157
-	}
158
-	
159
-	/**
160
-	 * Add to the error information.
161
-	 *
162
-	 * @param data Information to add to the end of the existing Data
163
-	 */
164
-	public void appendData(final String data) {
165
-		errorData = errorData + '[' + data + ']';
166
-	}
167
-	
168
-	/**
169
-	 * Get the last line recieved from the server before this exception.
170
-	 *
171
-	 * @return Returns the error data
172
-	 */
173
-	public String getLastLine() {
174
-		return lastLine;
175
-	}	
31
+    /** Error is potentially Fatal, Desync 99% Guaranteed! */
32
+    public static final int ERROR_FATAL = 1;
33
+    /** Error is not fatal, but is more severe than a warning. */
34
+    public static final int ERROR_ERROR = 2;
35
+    /**
36
+     * Error was an unexpected occurance, but shouldn't be anything to worry
37
+     * about.
38
+     */
39
+    public static final int ERROR_WARNING = 4;
40
+    /** Error is a user-error rather than a server error. */
41
+    public static final int ERROR_USER = 8;
42
+    /** Error was an exception from elsewhere. */
43
+    public static final int ERROR_EXCEPTION = 16;
44
+
45
+    /** Store the Error level. */
46
+    private int errorLevel;
47
+    /** Store the Error Information. */
48
+    private String errorData;
49
+    /** Store the Exception object. */
50
+    private Exception exceptionInfo;
51
+
52
+    /** Last line of server input before this exception was triggered. */
53
+    private String lastLine = "";
54
+
55
+    /**
56
+     * Create a new Error.
57
+     * 
58
+     * @param level
59
+     *            Set the error level.
60
+     * @param data
61
+     *            String containing information about the error.
62
+     * @param line
63
+     *            The last line of data recieved from the server before this
64
+     *            exception.
65
+     */
66
+    public ParserError(final int level, final String data, final String line) {
67
+        errorData = data;
68
+        errorLevel = level;
69
+        lastLine = line;
70
+    }
71
+
72
+    /**
73
+     * Check if this error is considered Fatal.
74
+     * 
75
+     * @return Returns true for a fatal error, false for a non-fatal error
76
+     */
77
+    public boolean isFatal() {
78
+        return (errorLevel & ERROR_FATAL) == ERROR_FATAL;
79
+    }
80
+
81
+    /**
82
+     * Check if this error is considered an error (less severe than fatal, worse
83
+     * than warning).
84
+     * 
85
+     * @return Returns true for an "Error" level error, else false.
86
+     */
87
+    public boolean isError() {
88
+        return (errorLevel & ERROR_ERROR) == ERROR_ERROR;
89
+    }
90
+
91
+    /**
92
+     * Check if this error is considered a warning.
93
+     * 
94
+     * @return Returns true for a warning, else false.
95
+     */
96
+    public boolean isWarning() {
97
+        return (errorLevel & ERROR_WARNING) == ERROR_WARNING;
98
+    }
99
+
100
+    /**
101
+     * Check if this error is considered a user-error rather than a server
102
+     * error.
103
+     * For DMDirc this will cause the error not to be reported to the developers
104
+     * 
105
+     * @return Returns true for a user error, else false.
106
+     */
107
+    public boolean isUserError() {
108
+        return (errorLevel & ERROR_USER) == ERROR_USER;
109
+    }
110
+
111
+    /**
112
+     * Check if this error was generated from an exception.
113
+     * 
114
+     * @return Returns true if getException will return an exception.
115
+     */
116
+    public boolean isException() {
117
+        return (errorLevel & ERROR_EXCEPTION) == ERROR_EXCEPTION;
118
+    }
119
+
120
+    /**
121
+     * Check if this error has a lastLine parameter.
122
+     * 
123
+     * @return Returns true if getLastLine returns anything non null, non empty.
124
+     */
125
+    public boolean hasLastLine() {
126
+        return lastLine != null && !lastLine.isEmpty();
127
+    }
128
+
129
+    /**
130
+     * Set the Exception object.
131
+     * 
132
+     * @param newException
133
+     *            The exception object to store
134
+     */
135
+    public void setException(final Exception newException) {
136
+        exceptionInfo = newException;
137
+        if (!isException()) {
138
+            errorLevel += ERROR_EXCEPTION;
139
+        }
140
+    }
141
+
142
+    /**
143
+     * Get the Exception object.
144
+     * 
145
+     * @return Returns the exception object
146
+     */
147
+    public Exception getException() {
148
+        return exceptionInfo;
149
+    }
150
+
151
+    /**
152
+     * Get the full ErrorLevel.
153
+     * 
154
+     * @return Returns the error level
155
+     */
156
+    public int getLevel() {
157
+        return errorLevel;
158
+    }
159
+
160
+    /**
161
+     * Get the Error information.
162
+     * 
163
+     * @return Returns the error data
164
+     */
165
+    public String getData() {
166
+        return errorData;
167
+    }
168
+
169
+    /**
170
+     * Add to the error information.
171
+     * 
172
+     * @param data
173
+     *            Information to add to the end of the existing Data
174
+     */
175
+    public void appendData(final String data) {
176
+        errorData += '[' + data + ']';
177
+    }
178
+
179
+    /**
180
+     * Get the last line recieved from the server before this exception.
181
+     * 
182
+     * @return Returns the error data
183
+     */
184
+    public String getLastLine() {
185
+        return lastLine;
186
+    }
176 187
 
177 188
 }

Loading…
Cancel
Save