poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sack...@apache.org
Subject cvs commit: jakarta-poi/src/scratchpad/src/org/apache/poi/hwpf/sprm CharacterSprmCompresser.java
Date Mon, 10 Nov 2003 11:52:11 GMT
sackley     2003/11/10 03:52:11

  Modified:    src/scratchpad/src/org/apache/poi/hwpf/sprm
                        CharacterSprmCompresser.java
  Log:
  latest changes...still not working though!
  
  Revision  Changes    Path
  1.2       +1 -12     jakarta-poi/src/scratchpad/src/org/apache/poi/hwpf/sprm/CharacterSprmCompresser.java
  
  Index: CharacterSprmCompresser.java
  ===================================================================
  RCS file: /home/cvs/jakarta-poi/src/scratchpad/src/org/apache/poi/hwpf/sprm/CharacterSprmCompresser.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- CharacterSprmCompresser.java	6 Aug 2003 01:14:35 -0000	1.1
  +++ CharacterSprmCompresser.java	10 Nov 2003 11:52:11 -0000	1.2
  @@ -319,18 +319,7 @@
         size += SprmUtils.addSprm((short)0x2859, newCHP.getSfxtText(), null, sprmList);
       }
   
  -    // spit out the final grpprl
  -    byte[] grpprl = new byte[size];
  -    int listSize = sprmList.size() - 1;
  -    int index = 0;
  -    for (; listSize >= 0; listSize--)
  -    {
  -      byte[] sprm = (byte[])sprmList.remove(0);
  -      System.arraycopy(sprm, 0, grpprl, index, sprm.length);
  -      index += sprm.length;
  -    }
  -
  -    return grpprl;
  +    return SprmUtils.getGrpprl(sprmList, size);
     }
   
   
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: poi-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: poi-dev-help@jakarta.apache.org


Mime
View raw message