Browse Source

Move method into parser interface

Change-Id: I08bfc1161fcae208ddcb31055e372d6650a0f150
Reviewed-on: http://gerrit.dmdirc.com/1281
Automatic-Compile: Chris Smith <chris@dmdirc.com>
Reviewed-by: Chris Smith <chris@dmdirc.com>
tags/0.6.4
Greg Holmes 14 years ago
parent
commit
e464b0253d

+ 10
- 0
src/com/dmdirc/parser/interfaces/Parser.java View File

@@ -29,6 +29,7 @@ import com.dmdirc.parser.common.QueuePriority;
29 29
 
30 30
 import java.net.URI;
31 31
 import java.util.Collection;
32
+import java.util.List;
32 33
 import java.util.Map;
33 34
 
34 35
 /**
@@ -232,6 +233,15 @@ public interface Parser extends Runnable {
232 233
      */
233 234
     String getServerSoftwareType();
234 235
 
236
+    /**
237
+     * Get the list of lines that lines that help describe the server
238
+     *
239
+     * @return List of identification lines for the server.
240
+     *
241
+     * @since 0.6.4,
242
+     */
243
+    List<String> getServerInformationLines();
244
+
235 245
     /**
236 246
      * Retrieves the maximum length for a topic that can be set by this parser.
237 247
      *

+ 2
- 5
src/com/dmdirc/parser/irc/IRCParser.java View File

@@ -1064,11 +1064,8 @@ public class IRCParser implements SecureParser, Runnable {
1064 1064
         return lastLine;
1065 1065
     }
1066 1066
 
1067
-    /**
1068
-     * Get the list of lines the server gave from 001 - 005.
1069
-     *
1070
-     * @return List of lines sent by the server between 001 and 005 inclusive.
1071
-     */
1067
+    /** {@inheritDoc} */
1068
+    @Override
1072 1069
     public List<String> getServerInformationLines() {
1073 1070
         synchronized (serverInformationLines) {
1074 1071
             return new LinkedList<String>(serverInformationLines);

Loading…
Cancel
Save