Examples of extract()


Examples of SevenZip.Archive.SevenZip.Handler.Extract()

        }
        final SZParserExtractCallback aec = new SZParserExtractCallback(super.log, archive,
                doc, location.getFile());
        super.log.logFine("processing archive contents...");
        try {
            archive.Extract(null, -1, 0, aec);
            return doc;  
        } catch (final IOException e) {
            if (e.getCause() instanceof InterruptedException)
                throw (InterruptedException)e.getCause();
            if (e.getCause() instanceof Parser.Failure)
View Full Code Here

Examples of asjava.uniclientlibs.UniDynArray.extract()

            parentApplet.appOutput("   Month=" + outputDyn.extract(0) + "\n");
            parentApplet.appOutput("   Day of Month=" + outputDyn.extract(1) + "\n");
            parentApplet.appOutput("   Year=" + outputDyn.extract(2) + "\n");
            parentApplet.appOutput("   Minutes since midnight=" + outputDyn.extract(3) + "\n");
            parentApplet.appOutput("   Seconds into the minute=" + outputDyn.extract(4) + "\n");
            parentApplet.appOutput("   Ticks of last second since midnight=" + outputDyn.extract(5) + "\n");
            parentApplet.appOutput("   CPU second used since entering UniVerse=" + outputDyn.extract(6) + "\n");
            parentApplet.appOutput("   Ticks of last second used since login=" + outputDyn.extract(7) + "\n");
            parentApplet.appOutput("   Disk I/O seconds used since entering UniVerse=" + outputDyn.extract(8) + "\n");
            parentApplet.appOutput("   Ticks of last disk I/O second used since login=" + outputDyn.extract(9) + "\n");
            parentApplet.appOutput("   Number of ticks per second=" + outputDyn.extract(10) + "\n");
View Full Code Here

Examples of cc.mallet.extract.CRFExtractor.extract()

     crf.addFullyConnectedStatesForLabels ();
     CRFTrainerByLabelLikelihood crft = new CRFTrainerByLabelLikelihood (crf);
     crft.trainIncremental (training);

     CRFExtractor extor = TestLatticeViewer.hackCrfExtor (crf);
     Extraction extraction = extor.extract (new ArrayIterator (data1));

     if (!outputDir.exists ()) outputDir.mkdir ();
     DocumentViewer.writeExtraction (outputDir, extraction);
   }
View Full Code Here

Examples of com.appspot.btcticker.fsm.GoogleCurrencyCalculator.extract()

                url.openStream()));
        String response = reader.readLine();

        GoogleCurrencyCalculator currencyCalculator = new GoogleCurrencyCalculator();

        double rate = currencyCalculator.extract(response);
        // update rate & timestamp
        switch (currency) {
        case EURO:
            euroRate = rate;
            euroTimestamp = System.currentTimeMillis();
View Full Code Here

Examples of com.astamuse.asta4d.snippet.extract.SnippetExtractor.extract()

    @Override
    public Renderer invoke(String renderDeclaration) throws SnippetNotResovlableException, SnippetInvokeException {
        Configuration conf = Context.getCurrentThreadContext().getConfiguration();

        SnippetExtractor extractor = conf.getSnippetExtractor();
        SnippetDeclarationInfo declaration = extractor.extract(renderDeclaration);

        SnippetResolver resolver = conf.getSnippetResolver();
        SnippetExcecutionInfo exeInfo = resolver.resloveSnippet(declaration);

        SnippetExecutionHolder execution = new SnippetExecutionHolder(declaration, exeInfo.getInstance(), exeInfo.getMethod(), null, null);
View Full Code Here

Examples of com.cloudera.flume.handlers.text.SyslogEntryFormat.extract()

    b.mark("disk_loaded");
    Event e = null;
    NullSink sink = new NullSink();
    SyslogEntryFormat syslog = new SyslogEntryFormat();
    while ((e = mem.next()) != null) {
      Event e2 = syslog.extract(new String(e.getBody()), 2009);
      sink.append(e2);
    }
    sink.close();
    b.mark("warmup done");
View Full Code Here

Examples of com.drew.metadata.MetadataReader.extract()

    public void testDescription_City() throws Exception
    {
        File iptcFile = new File("src/com/drew/metadata/iptc/test/withIptc.jpg");
        MetadataReader reader = new IptcReader(iptcFile);
        Metadata metadata = reader.extract();
        assertTrue(metadata.containsDirectory(IptcDirectory.class));
        Directory directory = metadata.getDirectory(IptcDirectory.class);
        assertEquals("City", directory.getDescription(IptcDirectory.TAG_CITY));
    }
View Full Code Here

Examples of com.drew.metadata.iptc.IptcReader.extract()

    public void testDescription_City() throws Exception
    {
        File iptcFile = new File("src/com/drew/metadata/iptc/test/withIptc.jpg");
        MetadataReader reader = new IptcReader(iptcFile);
        Metadata metadata = reader.extract();
        assertTrue(metadata.containsDirectory(IptcDirectory.class));
        Directory directory = metadata.getDirectory(IptcDirectory.class);
        assertEquals("City", directory.getDescription(IptcDirectory.TAG_CITY));
    }
View Full Code Here

Examples of com.drew.metadata.jpeg.JpegReader.extract()

    public void setUp() throws JpegProcessingException, FileNotFoundException
    {
        // use a known testing image
        File jpegFile = new File("src/com/drew/metadata/jpeg/test/simple.jpg");
        JpegReader reader = new JpegReader(jpegFile);
        Metadata metadata = reader.extract();
        assertTrue(metadata.containsDirectory(JpegDirectory.class));
        _directory = (JpegDirectory)metadata.getDirectory(JpegDirectory.class);
    }

    public void testExtract_Width() throws Exception
View Full Code Here

Examples of com.ebay.xcelite.column.ColumnsExtractor.extract()

  public BeanSheetReader(XceliteSheet sheet, Class<T> type) {
    super(sheet, false);
    this.type = type;
    ColumnsExtractor extractor = new ColumnsExtractor(type);
    extractor.extract();
    columns = extractor.getColumns();
    anyColumn = extractor.getAnyColumn();   
    mapper = new ColumnsMapper(columns);
  }
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.