rero.ircfw

Class Parsed1459

public class Parsed1459 extends Object implements FrameworkConstants

.;: Parser for RFC 1459 - IRC Protocol :;. Some of this code gets kind of ugly. Regex's all over the place. Basically this class takes a String given by the IRC server and extracts all relevant information we might care about into a Hashmap. No extra processing is done here, just extract information from the protocol Ugly code below. You shouldn't need to touch this though. That is why it is framework code. !@#$%^ BNF Representation of Stuff from Server ::= ':' ::= [ '!' ] [ '@' ] ::= { } ::= ' ' { ' ' } ::= ':' ::= ::= a bunch of characters without the first one being a :, and no white space ::= a bunch of white space
Field Summary
protected static StringchannelPattern
protected HashMapeventInformation
protected static StringhostPattern
protected static StringhostPattern2
protected static PatternisColonPresent
protected static PatternisHost
protected static PatternisNick
protected static PatternisNickUserHost
protected static PatternisNumeric
protected static PatternisWhiteSpace
protected static StringnickPattern
protected static StringuserPattern
Method Summary
HashMapparseString(String data)

Field Detail

channelPattern

protected static String channelPattern

eventInformation

protected HashMap eventInformation

hostPattern

protected static String hostPattern

hostPattern2

protected static String hostPattern2

isColonPresent

protected static Pattern isColonPresent

isHost

protected static Pattern isHost

isNick

protected static Pattern isNick

isNickUserHost

protected static Pattern isNickUserHost

isNumeric

protected static Pattern isNumeric

isWhiteSpace

protected static Pattern isWhiteSpace

nickPattern

protected static String nickPattern

userPattern

protected static String userPattern

Method Detail

parseString

public HashMap parseString(String data)