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 SprmUtils.java
Date Tue, 02 Mar 2004 06:19:29 GMT
sackley     2004/03/01 22:19:29

  Modified:    src/scratchpad/src/org/apache/poi/hwpf/sprm SprmUtils.java
  Log:
  latest changes
  
  Revision  Changes    Path
  1.4       +10 -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.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- SprmUtils.java	8 Jan 2004 11:09:37 -0000	1.3
  +++ SprmUtils.java	2 Mar 2004 06:19:29 -0000	1.4
  @@ -77,6 +77,16 @@
       return buf;
     }
   
  +  public static int addSpecialSprm(short instruction, byte[] varParam, List list)
  +  {
  +    byte[] sprm = new byte[varParam.length + 4];
  +    System.arraycopy(varParam, 0, sprm, 4, varParam.length);
  +    LittleEndian.putShort(sprm, instruction);
  +    LittleEndian.putShort(sprm, 2, (short)(varParam.length + 1));
  +    list.add(sprm);
  +    return sprm.length;
  +  }
  +
     public static int addSprm(short instruction, int param, byte[] varParam, List list)
     {
       int type = (instruction & 0xe000) >> 13;
  
  
  

---------------------------------------------------------------------
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