Package java.util

Examples of java.util.Vector.elementAt()


      path=remoteAbsolutePath(path);

      Vector v=glob_remote(path);
      int vsize=v.size();
      for(int j=0; j<vsize; j++){
  path=(String)(v.elementAt(j));

        SftpATTRS attr=_stat(path);

  attr.setFLAGS(0);
  attr.setACMODTIME(attr.getATime(), mtime);
View Full Code Here


      int vsize=v.size();

      Header header=new Header();

      for(int j=0; j<vsize; j++){
  path=(String)(v.elementAt(j));
  sendRMDIR(Util.str2byte(path, fEncoding));

        header=header(buf, header);
        int length=header.length;
        int type=header.type;
View Full Code Here

      }

      _username=Util.str2byte(username);

      for(int i=0; i<identities.size(); i++){
        Identity identity=(Identity)(identities.elementAt(i));
        byte[] pubkeyblob=identity.getPublicKeyBlob();

//System.err.println("UserAuthPublicKey: "+identity+" "+pubkeyblob);

        if(pubkeyblob!=null){
View Full Code Here

      if (vecdelete != null)
      {
        for (int i = 0; i < vecdelete.size(); i++)
        {
          int individualID = ((Number) vecdelete.elementAt(i)).intValue();
          if (!indvidualIDs.equals("")){
            this.insertmarketingRecordPermission(individualID, 15, indvidualIDs, ModuleFieldRightMatrix.DELETE_RIGHT, cvdl, 0);
          }// end if (!indvidualIDs.equals(""))
          if (!entityIDs.equals("")){
            this.insertmarketingRecordPermission(individualID, 14, entityIDs, ModuleFieldRightMatrix.DELETE_RIGHT, cvdl, 1);
View Full Code Here

      path=remoteAbsolutePath(path);

      Vector v=glob_remote(path);
      int vsize=v.size();
      for(int j=0; j<vsize; j++){
  path=(String)(v.elementAt(j));
  _setStat(path, attr);
      }
    }
    catch(Exception e){
      if(e instanceof SftpException) throw (SftpException)e;
View Full Code Here

  private String isUnique(String path) throws SftpException, Exception{
    Vector v=glob_remote(path);
    if(v.size()!=1){
      throw new SftpException(SSH_FX_FAILURE, path+" is not unique: "+v.toString());
    }
    return (String)(v.elementAt(0));
  }

  public int getServerVersion() throws SftpException{
    if(!isConnected()){
      throw new SftpException(SSH_FX_FAILURE, "The channel is not connected.");
View Full Code Here

  public void removeAllIdentity() throws JSchException{
    synchronized(identities){
      Vector foo=getIdentityNames();
      for(int i=0; i<foo.size(); i++){
        String name=((String)foo.elementAt(i));
        removeIdentity(name);
      }
    }
  }
View Full Code Here

  }

  public void closeAllConnections() {
    Vector stopList = (Vector) connections.clone();
    for (int i = 0; i < stopList.size(); i++) {
      TcpConnection tc = (TcpConnection) stopList.elementAt(i);
      tc.close();
    }
  }

  public void deactivate() {
View Full Code Here

     
      String tempmodule ="";
      String temprecord ="";
      for(int i=0;i<vkey.size();i++)
      {
        name = (String) vkey.elementAt(i)
        if (name.indexOf("_") != -1)
        {
          tempmodule = name.substring(0,name.indexOf("_"));
          if(!(temp_mod_id.contains(tempmodule) ))
            temp_mod_id.addElement(tempmodule);                   
View Full Code Here

      String srecord = "";   
      String recordType = "";
      String fieldName = "";
      for(int i=0;i<vkey.size();i++)
      {
        String tmodule = (String)vkey.elementAt(i);
        //System.out.println("tmodule = "+tmodule);
        if (tmodule.indexOf("_") != -1)
        {
          smodule = tmodule.substring(0,tmodule.indexOf("_"));
          srecord = tmodule.substring((tmodule.indexOf("_")+1),tmodule.length());
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.