Examples of fragment()


Examples of org.jdom2.input.StAXStreamBuilder.fragment()

          xsw.close();
          String expect = sw.toString();
         
          StAXStreamBuilder sbuilder = new StAXStreamBuilder();
         
      Content backagain = sbuilder.fragment(
          sinfactory.createXMLStreamReader(new StringReader(expect)));

      // convert the input to a SAX Stream

      sw.getBuffer().setLength(0);
View Full Code Here

Examples of org.springframework.web.util.UriComponentsBuilder.fragment()

        if (!Strings.isNullOrEmpty(port)) {
          builder.port(Integer.parseInt(port));
        }
        builder.path(m.group(11));
        builder.query(m.group(13));
        builder.fragment(m.group(15)); // we throw away the hash, but this is the group it would be if we kept it
      } else {
        // doesn't match the pattern, throw it out
        logger.warn("Parser couldn't match input: " + identifier);
        return null;
      }
View Full Code Here

Examples of org.springframework.web.util.UriComponentsBuilder.fragment()

          builder.scheme("https");
        }
      }

      // fragment must be stripped (rule 4)
      builder.fragment(null);

      return builder.build();
    }

View Full Code Here

Examples of org.springframework.web.util.UriComponentsBuilder.fragment()

        query.put(additionalInfo.getKey(), additionalInfo.getValue());
      }
    }

    if (fragment) {
      template.fragment(values.toString());
    }
    else {
      template.query(values.toString());
    }
View Full Code Here

Examples of pku.cbi.abcgrid.master.fragment.Fragmentable.fragment()

                if (frag == null)
                    throw new Exception("Failed to  detect the format of input file:" + fname);
                Object[] data;
                int num_workers = WorkerManager.getInstance().getWorkerNum();
                num_workers = num_workers > 0 ? num_workers : 10;
                data = frag.fragment(new ByteArrayInputStream(fdata), num_workers);
                List<Task> tasks = new ArrayList<Task>(data.length);
                for (Object d : data)
                {
                    Task t = new Task(
                            job.getId(),
View Full Code Here

Examples of pku.cbi.abcgrid.master.fragment.PDB.fragment()

        for (TaskInput input : job.getInput())
        {
            File f = new File(user_dir, input.getName());
            int num_workers = WorkerManager.getInstance().getWorkerNum();
            num_workers = num_workers > 0 ? num_workers : 10;
            Object[] data = frag.fragment(f, num_workers);
            t.addInput(new TaskInput(input.getName(), data[0].toString().getBytes()));
        }
        tasks.add(t);
        return tasks;
    }
View Full Code Here

Examples of pku.cbi.abcgrid.master.service.App.fragment()

        App app = apps.get(appName);
        int priority = usermgr.getUserPriority(submitter);
        Job j = app.parse(submitter, commands, priority);
        j.setId(atomic_job_id.getAndIncrement());
        //partition this job into tasks
        List<Task> tasks = app.fragment(j);
        JobInfo ji = new JobInfo(j.getId(), j.getSubmitter(),commands);
        for (Task t : tasks)
        {
            ji.add(new TaskInfo(t));
        }
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.