Examples of Options


Examples of com.mapmidlet.options.Options

    public static Image downloadAndSaveImage(String url, final String fileUrl) throws IOException {
        Image result = null;
        // long beforeRequest = System.currentTimeMillis();
        HttpConnection http = (HttpConnection) Connector.open(url);
        http.setRequestMethod(HttpConnection.GET);
        Options options = Options.getInstance();

        http
                .setRequestProperty("User-Agent",
                        "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.0.12) Gecko/2009070611 Firefox/3.0.12 (.NET CLR 3.5.30729");
View Full Code Here

Examples of com.mdimension.jchronic.Options

    public long parseDateShorthand(String d) {
  Calendar now = Calendar.getInstance();
  long l=now.getTimeInMillis();
  d=d.trim();
  if (d.compareToIgnoreCase("now")!=0) {
      Options options= new Options(false);
      options.setCompatibilityMode(true);
      options.setNow(now);
      try {
    Span span = Chronic.parse(d, options);
    l = span.getBegin()*1000;
      } catch (Exception e) {
    // exception when parsing
View Full Code Here

Examples of com.overzealous.remark.Options

*/
public class AnchorInlineTest extends RemarkTester {

  @Override
  public Remark setupRemark() {
    Options opts = Options.markdown();
    opts.inlineLinks = true;
    return new Remark(opts);
  }
View Full Code Here

Examples of com.redfin.sitemapgenerator.WebSitemapUrl.Options

    if (items == null || items.isEmpty()) {
      return;
    }

    for (final MenuItem item : items) {
      final Options options = new Options(project.getUrl() + relativePath(item.getHref()));
      options.lastMod(new Date());
      options.changeFreq(changeFreq);
      generator.addUrl(options.build());
      extractItems(project, item.getItems(), generator, changeFreq);
    }
  }
View Full Code Here

Examples of com.redhat.ceylon.compiler.Options

    public void testJavaDependencies() throws IOException {
        final TypeCheckerBuilder builder = new TypeCheckerBuilder();
        builder.addSrcDirectory(new File("src/test/resources/javadeps"));
        final TypeChecker tc = builder.getTypeChecker();
        tc.process();
        final Options opts = new Options()
                .addSrcDir("src/test/resources/javadeps")
                .outRepo("./build")
                .indent(false)
                .comment(false)
                .generateSourceArchive(false)
View Full Code Here

Examples of com.sk89q.jchronic.Options

    @Nullable
    public Calendar detectDate(String input) {
        checkNotNull(input);

        Time.setTimeZone(getTimeZone());
        Options opt = new com.sk89q.jchronic.Options();
        opt.setNow(Calendar.getInstance(getTimeZone()));
        Span date = Chronic.parse(input, opt);
        if (date == null) {
            return null;
        } else {
            return date.getBeginCalendar();
View Full Code Here

Examples of com.sun.tools.internal.jxc.apt.Options

     * @return
     *      exit code. 0 if success.
     *
     */
    public static int run(String[] args, ClassLoader classLoader) throws ClassNotFoundException, NoSuchMethodException, IllegalAccessException, InvocationTargetException {
        final Options options = new Options();
        if (args.length ==0) {
            usage();
            return -1;
        }
        for (String arg : args) {
            if (arg.equals("-help")) {
                usage();
                return -1;
            }

            if (arg.equals("-version")) {
                System.out.println(Messages.VERSION.format());
                return -1;
            }
        }

        try {
            options.parseArguments(args);
        } catch (BadCommandLineException e) {
            // there was an error in the command line.
            // print usage and abort.
            System.out.println(e.getMessage());
            System.out.println();
View Full Code Here

Examples of com.sun.tools.javac.util.Options

                                       Iterable<String> options)
    {
        if (options == null)
            return;

        Options optionTable = Options.instance(context);

        JavacOption[] recognizedOptions =
            RecognizedOptions.getJavacToolOptions(new GrumpyHelper());
        Iterator<String> flags = options.iterator();
        while (flags.hasNext()) {
View Full Code Here

Examples of com.sun.tools.jxc.ap.Options

     * @return
     *      exit code. 0 if success.
     *
     */
    public static int run(String[] args, ClassLoader classLoader) throws ClassNotFoundException, NoSuchMethodException, IllegalAccessException, InvocationTargetException {
        final Options options = new Options();
        if (args.length ==0) {
            usage();
            return -1;
        }
        for (String arg : args) {
            if (arg.equals("-help")) {
                usage();
                return -1;
            }

            if (arg.equals("-version")) {
                System.out.println(Messages.VERSION.format());
                return -1;
            }

            if (arg.equals("-fullversion")) {
                System.out.println(Messages.FULLVERSION.format());
                return -1;
            }

        }

        try {
            options.parseArguments(args);
        } catch (BadCommandLineException e) {
            // there was an error in the command line.
            // print usage and abort.
            System.out.println(e.getMessage());
            System.out.println();
View Full Code Here

Examples of com.sun.tools.jxc.apt.Options

     * @return
     *      exit code. 0 if success.
     *
     */
    public static int run(String[] args, ClassLoader classLoader) throws ClassNotFoundException, NoSuchMethodException, IllegalAccessException, InvocationTargetException {
        final Options options = new Options();
        if (args.length ==0) {
            usage();
            return -1;
        }
        for (String arg : args) {
            if (arg.equals("-help")) {
                usage();
                return -1;
            }

            if (arg.equals("-version")) {
                System.out.println(Messages.VERSION.format());
                return -1;
            }
        }

        try {
            options.parseArguments(args);
        } catch (BadCommandLineException e) {
            // there was an error in the command line.
            // print usage and abort.
            System.out.println(e.getMessage());
            System.out.println();
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.