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
protected static String channelPattern
protected HashMap eventInformation
protected static String hostPattern
protected static String hostPattern2
protected static Pattern isColonPresent
protected static Pattern isHost
protected static Pattern isNick
protected static Pattern isNickUserHost
protected static Pattern isNumeric
protected static Pattern isWhiteSpace
protected static String nickPattern
protected static String userPattern
public HashMap parseString(String data)