You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-commits@xmlgraphics.apache.org by pb...@apache.org on 2004/01/05 02:49:50 UTC

cvs commit: xml-fop/src/java/org/apache/fop/datastructs ROIntArray.java

pbwest      2004/01/04 17:49:50

  Modified:    src/java/org/apache/fop/datastructs Tag:
                        FOP_0-20-0_Alt-Design ROIntArray.java
  Log:
  Added copyarray method.
  Added javadoc comment on class.
  
  Revision  Changes    Path
  No                   revision
  No                   revision
  1.1.2.2   +17 -6     xml-fop/src/java/org/apache/fop/datastructs/Attic/ROIntArray.java
  
  Index: ROIntArray.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/java/org/apache/fop/datastructs/Attic/ROIntArray.java,v
  retrieving revision 1.1.2.1
  retrieving revision 1.1.2.2
  diff -u -r1.1.2.1 -r1.1.2.2
  --- ROIntArray.java	5 Jul 2003 19:06:35 -0000	1.1.2.1
  +++ ROIntArray.java	5 Jan 2004 01:49:50 -0000	1.1.2.2
  @@ -1,7 +1,4 @@
  -/**
  - * Provides a Read-Only <tt>int</tt> array.
  - *
  - * 
  +/*
    * ============================================================================
    *                   The Apache Software License, Version 1.1
    * ============================================================================
  @@ -56,6 +53,11 @@
   // $Id$
   package org.apache.fop.datastructs;
   
  +/**
  + * Provides a Read-Only <tt>int</tt> array.
  + * 
  + * @author pbw
  + */
   public class ROIntArray {
       
       private int[] iarray;
  @@ -103,5 +105,14 @@
        */
       public int get(int index) {
           return iarray[index];
  +    }
  +    
  +    /**
  +     * @return a copy of the array
  +     */
  +    public int[] copyarray() {
  +        int[] tmp = null;
  +        System.arraycopy(iarray, 0, tmp, 0, iarray.length);
  +        return tmp;
       }
   }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-cvs-help@xml.apache.org