/*

   Copyright 2001-2004  The Apache Software Foundation 

   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
   You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.

*/

package org.apache.batik.transcoder.wmf.tosvg;

import java.util.Vector;

public class MetaRecord /*implements Serializable*/ {
    public int	functionId;
    public int	numPoints;

    private Vector ptVector;

    public MetaRecord() {
        ptVector = new Vector();
    }

    public void EnsureCapacity( int cc ) {
        ptVector.ensureCapacity( cc );
    }

    public void AddElement( Object obj ) {
        ptVector.addElement( obj );
    }

    public Integer ElementAt( int offset ) {
        return (Integer)ptVector.elementAt( offset );
    }
    
    /** A record that contain byte arrays elements.
     */
    public static class ByteRecord extends MetaRecord {
        public byte[] bstr;
        
        public ByteRecord(byte[] bstr) {
            this.bstr = bstr;
        }
    }
    
    public static class StringRecord extends MetaRecord /*implements Serializable*/ {
        public String text;
        
        public StringRecord( String newText ) {
            text = new String( newText );
        }
    }    
}
    


@@ -51,17 +51,16 @@
 undation
- 
 %0A%0A   Lic
@@ -1163,28 +1163,24 @@
 et );%0A    %7D%0A
-    
 %0A    /** A r
@@ -1312,24 +1312,16 @@
 %5D bstr;%0A
-        
 %0A       
@@ -1400,20 +1400,16 @@
 %7D%0A    %7D%0A
-    
 %0A    pub
@@ -1515,24 +1515,16 @@
 g text;%0A
-        
 %0A       
@@ -1586,28 +1586,16 @@
 xt =
- new String(
  newText
  );%0A
@@ -1590,18 +1590,16 @@
  newText
- )
 ;%0A      
@@ -1611,17 +1611,9 @@
    %7D
-    %0A%7D%0A    
+%0A%7D%0A
 %0A%0A

drop new String()