CVS update: JGroups/tests/other/org/jgroups/tests ParseMessages.java

"Bela Ban" <[email protected]> Wed, 29 Sep 2010 13:33:52 +0000
Newsgroups gmane.comp.java.javagroups.cvs
Message-ID <[email protected]>
  User: belaban 
  Date: 10/09/29 13:33:52

  Modified:    tests/other/org/jgroups/tests ParseMessages.java
  Log:
  ns
  
  Revision  Changes    Path
  1.2       +7 -7      JGroups/tests/other/org/jgroups/tests/ParseMessages.java
  
  Index: ParseMessages.java
  ===================================================================
  RCS file: /cvsroot/javagroups/JGroups/tests/other/org/jgroups/tests/ParseMessages.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- ParseMessages.java	29 Sep 2010 13:33:27 -0000	1.1
  +++ ParseMessages.java	29 Sep 2010 13:33:52 -0000	1.2
  @@ -12,7 +12,7 @@
   /**
    * Parses messages out of a captured file and writes them to stdout
    * @author Bela Ban
  - * @version $Id: ParseMessages.java,v 1.1 2010/09/29 13:33:27 belaban Exp $
  + * @version $Id: ParseMessages.java,v 1.2 2010/09/29 13:33:52 belaban Exp $
    */
   public class ParseMessages {
       InputStream input=null;
  @@ -32,13 +32,13 @@
               dis=new DataInputStream(input);
   
               for(;;) {
  -                // version=dis.readShort();
  +                version=dis.readShort();
   
  -                int ch1 = input.read();
  -                int ch2 = input.read();
  -                if ((ch1 | ch2) < 0)
  -                    throw new EOFException();
  -                version=(short)((ch1 << 8) + (ch2 << 0));
  +//                int ch1 = input.read();
  +//                int ch2 = input.read();
  +//                if ((ch1 | ch2) < 0)
  +//                    throw new EOFException();
  +//                version=(short)((ch1 << 8) + (ch2 << 0));
   
   
                   System.out.println("version = " + version + " (" + Version.print(version) + ")");
  
  
  

------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev