Changeset 34087

Show
Ignore:
Timestamp:
06/22/09 00:23:12 (4 years ago)
Author:
tarchan
Message:

lang/java/IRCKit: メッセージハンドラをpublicに変更

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/java/IRCKit/trunk/src/com/mac/tarchan/irc/client/IRCClient.java

    r34084 r34087  
    325325        { 
    326326                IRCMessage msg = createMessage(text); 
    327 //              try 
    328 //              { 
    329 //                      text = new String(text.getBytes(), encoding); 
    330 //              } 
    331 //              catch (UnsupportedEncodingException x) 
    332 //              { 
    333 //                      x.printStackTrace(); 
    334 //              } 
    335 //              System.out.format("[GET][%s] %s\n", msg.getCommand(), text); 
    336 //              if (handler != null) handler.onMessage(msg); 
    337327                fireHandler(msg.getCommand(), msg); 
    338328                fireHandler("ALL", msg); 
     
    479469         * 接続を継続するために PONG を送信します。 
    480470         */ 
    481         private static class PingPong 
    482         { 
     471        public static class PingPong 
     472        { 
     473                /** IRCクライアント */ 
    483474                protected IRCClient irc; 
    484475 
     476                /** 
     477                 * PingPongを構築します。 
     478                 *  
     479                 * @param irc IRCクライアント 
     480                 */ 
    485481                public PingPong(IRCClient irc) 
    486482                { 
     
    506502         * IRCサーバーにログインしたら、自動的にJOINします。 
    507503         */ 
    508         private static class AutoJoin 
    509         { 
     504        public static class AutoJoin 
     505        { 
     506                /** IRCクライアント */ 
    510507                protected IRCClient irc; 
    511508 
     509                /** 
     510                 * AutoJoinを構築します。 
     511                 *  
     512                 * @param irc IRCクライアント 
     513                 */ 
    512514                public AutoJoin(IRCClient irc) 
    513515                {