Package java.util

Examples of java.util.Vector.toArray()


          ;
        else if(!members.isEmpty())
        {
          try
          {
            Buddy[] buddies = (Buddy[]) members.toArray(new Buddy[0]);
            Conference conf = new Conference(this, host, buddies);
            Response resp = listener.conferenceInvitationReceived(conf, msg);
            processConferenceResponse(resp, buddies, room);
          }
          catch(UnsupportedOperationException e)
View Full Code Here


          ;
        else
        {
          try
          {
            Buddy[] buddies = (Buddy[]) members.toArray(new Buddy[0]);
            Conference conf = new Conference(this, host, buddies);
            Response resp = listener.conferenceInvitationReceived(conf, msg);
            processConferenceResponse(resp, buddies, room);
          }
          catch(UnsupportedOperationException e)
View Full Code Here

    while (enumNames.hasMoreElements()) {
      String name = (String) enumNames.nextElement();
      v.add(name + " : " + message.getObjectProperty(name));
    }
    String [] a = new String[v.size()];
    v.toArray(a);
    Arrays.sort(a);
    for (int i=0; i<a.length; i++)
      System.out.println(a[i]);
  }
 
View Full Code Here

      throw new SecurityException("Invalid user identification: " + exc);
    } catch (javax.jms.JMSException exc) {
      throw new CommException("Could not connect to the JORAM server: " + exc);
    }

    return (XAResource[]) resources.toArray(new XAResource[resources.size()]);
  }

  // TODO (AF): Is it really needed?
  /** @deprecated */
  public void exit() {
View Full Code Here

      HashMap moduleRightsHashMap = (HashMap)moduleRightsTreeMap.get(moduleID);
      String moduleName = (String)moduleRightsHashMap.get("name");
      moduleRightsVector.add(moduleName);
    }
    String[] moduleRightsArray = new String[moduleRightsVector.size()];
    moduleRightsVector.toArray(moduleRightsArray);
    securityProfileBean.set("moduleright", moduleRightsArray);
  }

  /**
   * In the future... make this method recursive. This method
View Full Code Here

                while (classNames.hasNext())
                {
                  args.add(classNames.next());
                }

                Jibx2Wsdl.main((String[]) args.toArray(new String[args.size()]));
         
            } catch (JiBXException e) {
              e.printStackTrace();
          } catch (IOException e) {
              e.printStackTrace();
View Full Code Here

            }
        }
        System.out.println("#minmax " + lnmin + " " + lnmax + " " + ltmin + " "
                + ltmax);
        int unClosedCount = V.size();
        ArcData[] unClosed = (ArcData[]) V.toArray(new ArcData[unClosedCount]);

        V.clear();
        V = null;
        //chercher les connections;
        ArcData d0;
View Full Code Here

                                + layers[i].getName());
                    }
                }
            }
            Layer[] imageLayers = new Layer[layerVector.size()];
            return (Layer[]) layerVector.toArray(imageLayers);
        }
    }

    /**
     * Get the ImageFormatter currently used for the image creation.
View Full Code Here

        }
        Vector vlist = getGraphicList();
        Object[] list = null;

        if (vlist != null)
            list = vlist.toArray();

        if (list != null) {
            int i;
            OMGraphic loc;
            // Draw from the bottom up, so it matches the palette, and
View Full Code Here

        Vector vector = new Vector();
        for (int n = 0; n <= layers.length - 1; n++) {
            String name = layers[n].getName();
            vector.add(name);
        }
        Object[] objects = vector.toArray();
        String selectedValue = (String) JOptionPane.showInputDialog(null,
                "Choose one",
                "Input",
                JOptionPane.INFORMATION_MESSAGE,
                null,
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.