Examples of DefaultParser


Examples of org.apache.clerezza.templating.seedsnipe.simpleparser.DefaultParser

    StringReader reader = new StringReader(
        "${ns:rdf=http://www.w3.org/1999/02/22-rdf-syntax-ns#}" +
        "${loop}${loop}${rdf:value/contains}${/loop}${/loop}");
    StringWriter writer = new StringWriter();

    new DefaultParser(reader, writer).perform(dataFieldResolver);

    Assert.assertEquals("\"first\"\"second\"\"third\"", writer.toString());
  }
View Full Code Here

Examples of org.apache.clerezza.templating.seedsnipe.simpleparser.DefaultParser

    DataFieldResolver dataFieldResolver = new GraphNodeDataFieldResolver(node, simpleFunctions);
    StringReader reader = new StringReader(
        "${loop}${./contains}${/loop}");
    StringWriter writer = new StringWriter();

    new DefaultParser(reader, writer).perform(dataFieldResolver);

    Assert.assertEquals("\"first\"\"second\"\"third\"", writer.toString());
  }
View Full Code Here

Examples of org.apache.clerezza.templating.seedsnipe.simpleparser.DefaultParser

    StringReader reader = new StringReader(
        "${ns:rdfs=http://www.w3.org/2000/01/rdf-schema#}" +
        "${loop}${loop}${contains/rdfs:label}${/loop}${/loop}");
    StringWriter writer = new StringWriter();

    new DefaultParser(reader, writer).perform(dataFieldResolver);

    Assert.assertEquals("\"first\"\"second\"\"third\"", writer.toString());
  }
View Full Code Here

Examples of org.apache.clerezza.templating.seedsnipe.simpleparser.DefaultParser

    StringReader reader = new StringReader(
        "${ns:rdfs=http://www.w3.org/2000/01/rdf-schema#}" +
        "${loop}${if contains/rdfs:label}${contains/rdfs:label}${/if}${/loop}");
    StringWriter writer = new StringWriter();

    new DefaultParser(reader, writer).perform(dataFieldResolver);

    Assert.assertEquals("\"first\"\"second\"\"third\"", writer.toString());
  }
View Full Code Here

Examples of org.apache.clerezza.templating.seedsnipe.simpleparser.DefaultParser

    StringReader reader = new StringReader("${ns:rdfs=http://www.w3.org/2000/01/rdf-schema#}" +
        "${if getAudio(\"foo/bar\") = \"audio\"}noproblem${/if}");
    StringWriter writer = new StringWriter();

    new DefaultParser(reader, writer).perform(dataFieldResolver);

    Assert.assertEquals("noproblem", writer.toString());
  }
View Full Code Here

Examples of org.apache.clerezza.templating.seedsnipe.simpleparser.DefaultParser

    StringReader reader = new StringReader(
        "${ns:rdf=http://www.w3.org/1999/02/22-rdf-syntax-ns#}" +
        "${loop}${loop}${rdf:value/contains}${/loop}${/loop}");
    StringWriter writer = new StringWriter();

    new DefaultParser(reader, writer).perform(dataFieldResolver);

    Assert.assertEquals("\"first\"\"second\"\"third\"", writer.toString());
  }
View Full Code Here

Examples of org.apache.tika.parser.DefaultParser

        return new DefaultDetector(types, loader);
    }

    private static CompositeParser getDefaultParser(
            MimeTypes types, ServiceLoader loader) {
        return new DefaultParser(types.getMediaTypeRegistry(), loader);
    }
View Full Code Here

Examples of org.apache.tika.parser.DefaultParser

                Detector.class.getName(),
                new DefaultDetector(Activator.class.getClassLoader()),
                new Properties());
        parserService = context.registerService(
                Parser.class.getName(),
                new DefaultParser(Activator.class.getClassLoader()),
                new Properties());
    }
View Full Code Here

Examples of org.apache.tika.parser.DefaultParser

     * @throws MimeTypeException if the built-in media type rules are broken
     * @throws IOException  if the built-in media type rules can not be read
     */
    public TikaConfig(ClassLoader loader)
            throws MimeTypeException, IOException {
        this(new DefaultParser(loader));
    }
View Full Code Here

Examples of org.apache.tika.parser.DefaultParser

     *
     * @throws MimeTypeException if the built-in media type rules are broken
     * @throws IOException  if the built-in media type rules can not be read
     */
    public TikaConfig() throws MimeTypeException, IOException {
        this(new DefaultParser());
    }
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.