Package java.util

Examples of java.util.Vector.copyInto()


             } // end while
         } // end if
        
         if (dataLines != null) {
             String[] data = new String[dataLines.size()];
             dataLines.copyInto(data);
             return new FTPReply(replyCode, reply.toString(), data);
         }
         else {
             return new FTPReply(replyCode, reply.toString());
         }
View Full Code Here


       
        // empty array is default
        String[] result = new String[0];
        if (!lines.isEmpty()) {
            result = new String[lines.size()];
            lines.copyInto(result);
        }
       
        return result;
    }
   
View Full Code Here

            while ((line = reader.readLine()) != null) {
                lines.addElement(line);
                System.out.println(line);
            }
            String[] listings = new String[lines.size()];
            lines.copyInto(listings);
            FTPFile[] files = ff.parse(listings);
            for (int i = 0; i < files.length; i++)
                System.out.println(files[i].toString());
        }
        catch (IOException ex) {
View Full Code Here

            Vector newConstraints = new Vector();

            parseOptions(newConstraints, props);

            constraints = new Constraint[newConstraints.size()];
            newConstraints.copyInto(constraints);


            if (reftype == REFERENCE || reftype == COMPLEX_REFERENCE) {
                if (constraints.length == 0) {
                    referencesPrimaryKey = true;
View Full Code Here

      Enumeration e = getAttributeNames();
      Vector names = new Vector();
      while (e.hasMoreElements())
        names.addElement(e.nextElement());
      String[] result = new String[names.size()];
      names.copyInto(result);
      return result;
    }

    public void setAttribute(String name, Object value)
        throws IllegalStateException {
View Full Code Here

        int nLayers = layers.size();
        if (nLayers == 0) {
            return null;
        } else {
            Layer[] value = new Layer[nLayers];
            layers.copyInto(value);
            return value;
        }
    }
}
View Full Code Here

        while (enumeration.hasMoreElements()) {
            vec.addElement(enumeration.nextElement());
        }

        Float[] result = new Float[vec.size()];
        vec.copyInto(result);
        Vector resultvec = new Vector(vec.size());

        for (int i = 0; i < vec.size(); i++) {
            for (int j = i + 1; j < vec.size(); j++) {
                if (result[i].floatValue() > result[j].floatValue()) {
View Full Code Here

            return null;

        } else {

            LLPoint pts[] = new LLPoint[nPts];
            vPts.copyInto(pts);
            return pts;

        }
    }
View Full Code Here

    if (last != len)
      items.add(str.substring(last));
    if (trailing != null && trailing.length() != 0)
      items.add(trailing);
    String[] result = new String[items.size()];
    items.copyInto(result);
    return result;
  }
 
// ------------------------------
 
View Full Code Here

        ssx.close();
        shp.close();
        shp = null;
        ESRIRecord result[] = new ESRIRecord[nRecords];
        v.copyInto(result);
        return result;

    }

    /**
 
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.