Examples of extract()


Examples of com.vividsolutions.jtstest.clean.LineStringExtracter.extract()

  private List extractLineStrings(Collection geometries) {
    ArrayList lineStrings = new ArrayList();
    LineStringExtracter extracter = new LineStringExtracter();
    for (Iterator i = geometries.iterator(); i.hasNext(); ) {
      Geometry geometry = (Geometry) i.next();
      lineStrings.add(extracter.extract(geometry));     
    }
    return lineStrings;
  }

  private Geometry node(List geometries) {
View Full Code Here

Examples of com.volantis.mcs.dom2theme.StyledDOMThemeExtractor.extract()

            final ExtractorConfiguration configuration =
                    protocolConfiguration.getExtractorConfiguration();

            StyledDOMThemeExtractor extractor =
                    factory.createExtractor(configuration, extractorContext);
            StyleSheet styleSheet = extractor.extract(document);

            StringWriter cssStringWriter = new StringWriter();
            StyleSheetRenderer renderer = getStyleSheetRenderer();
            MarinerPageContext marinerPageContext = getMarinerPageContext();
View Full Code Here

Examples of edu.washington.cs.knowitall.extractor.ReVerbExtractor.extract()

        }

        // Prints out extractions from the sentence.
        ReVerbExtractor reverb = new ReVerbExtractor();
        ConfidenceFunction confFunc = new ReVerbOpenNlpConfFunction();
        for (ChunkedBinaryExtraction extr : reverb.extract(sent)) {
            double conf = confFunc.getConf(extr);
            System.out.println("Arg1=" + extr.getArgument1());
            System.out.println("Rel=" + extr.getRelation());
            System.out.println("Arg2=" + extr.getArgument2());
            System.out.println("Conf=" + conf);
View Full Code Here

Examples of edu.washington.cs.knowitall.extractor.RegexExtractor.extract()

    @Test
    public void testExtract1() throws Exception {
        String pattern = "(" + verb + np + prep + "|" + verb + ")+";
        RegexExtractor extractor = new RegexExtractor(pattern);
        Iterable<ChunkedExtraction> extrIter = extractor.extract(sent1);
        List<ChunkedExtraction> extrs = new ArrayList<ChunkedExtraction>();
        Iterables.addAll(extrs, extrIter);
        Assert.assertEquals(1, extrs.size());

        ChunkedExtraction extr = extrs.get(0);
View Full Code Here

Examples of eu.cedarsoft.utils.ZipExtractor.extract()

        throws MojoExecutionException
    {
        try
        {
            ZipExtractor ze = new ZipExtractor( template );
            ze.extract( outputDir );
        }
        catch ( IOException e )
        {
            throw new MojoExecutionException( "An error happens when trying to extract html-template.", e );
        }
View Full Code Here

Examples of fr.dz.swan.prototype.Svgz.SvgzFile.extract()

    if (f.getName().endsWith(".svgz")) {
      System.out.println("Fichier svgz : ");
      SvgzFile svgz = new SvgzFile(f);
      System.out.print("extraction ....");
      f = svgz.extract();
      System.out.println("OK");
    }else if(!f.getName().endsWith(".svg")){
      throw new IllegalAccessException("le fichier "+f.getAbsolutePath()+" n'est pas un fichier '.svg'");
    }
    System.out.println("Test validit� fichier OK");
View Full Code Here

Examples of fr.soleil.tango.clientapi.TangoAttribute.extract()

    public static Double getData(IDevice device) throws SalsaDeviceException {
        Double result = Double.NaN;
        try {
            TangoAttribute tangoAttribute = getTangoAttribute(device);
            if (tangoAttribute != null) {
                result = tangoAttribute.extract(Double.class);
            }
        }
        catch (Exception e) {
            // e.printStackTrace();
            SalsaDeviceException salsaDeviceException = new SalsaDeviceException(
View Full Code Here

Examples of info.ata4.unity.cli.extract.AssetExtractor.extract()

    @Override
    protected void processAsset(AssetFile asset) throws IOException {
        AssetExtractor ae = new AssetExtractor(asset);
        ae.setClassFilter(getOptions().getClassFilter());
        ae.setOutputDir(getOutputDir());
        ae.extract(isRaw());
    }
}
View Full Code Here

Examples of io.undertow.websockets.jsr.UTF8Output.extract()

            builder.write(payload);
            if (header.isLastFragement() || (textMessage.hasParameterType(boolean.class) && !textMessage.isDecoderRequired() && builder.hasData())) {
                Object messageObject;
                if (textMessage.isDecoderRequired()) {
                    try {
                        messageObject = session.getEncoding().decodeText(textMessage.getMessageType(), builder.extract());
                    } catch (DecodeException e) {
                        onError(s, e);
                        return;
                    }
                } else if (textMessage.getMessageType().equals(Reader.class)) {
View Full Code Here

Examples of lev.LByteChannel.extract()

            LByteChannel objectChannel = new LByteChannel(object);
            if(format == 1){
                object_FormID = new FormID();
                object_FormID.parseData(objectChannel, srcMod);
                object_alias = objectChannel.extractInt(2);
                object_unused = objectChannel.extract(2);
            } else if (format == 2) {
                object_unused = objectChannel.extract(2);
                object_alias = objectChannel.extractInt(2);
                object_FormID = new FormID();
                object_FormID.parseData(objectChannel, srcMod);
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.