You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by sa...@apache.org on 2003/11/10 12:52:35 UTC

cvs commit: jakarta-poi/src/scratchpad/src/org/apache/poi/hwpf/sprm SprmUtils.java

sackley     2003/11/10 03:52:35

  Modified:    src/scratchpad/src/org/apache/poi/hwpf/sprm SprmUtils.java
  Log:
  latest changes...still not working though!
  
  Revision  Changes    Path
  1.2       +17 -0     jakarta-poi/src/scratchpad/src/org/apache/poi/hwpf/sprm/SprmUtils.java
  
  Index: SprmUtils.java
  ===================================================================
  RCS file: /home/cvs/jakarta-poi/src/scratchpad/src/org/apache/poi/hwpf/sprm/SprmUtils.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- SprmUtils.java	6 Aug 2003 01:14:35 -0000	1.1
  +++ SprmUtils.java	10 Nov 2003 11:52:35 -0000	1.2
  @@ -123,6 +123,23 @@
       return sprm.length;
     }
   
  +  public static byte[] getGrpprl(List sprmList, int size)
  +  {
  +    // 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;
  +
  +  }
  +
     public static int convertBrcToInt(short[] brc)
     {
       byte[] buf = new byte[4];
  
  
  

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