Examples of DocumentConverter


Examples of com.alimama.mdrill.index.utils.DocumentConverter

      TermInfosWriter.setSkipInterVal(16);
    }
    TermInfosWriter.setNotUseQuick(false);
    String fieldStrs = conf.get("higo.index.fields");
    String[] fieldslist = fieldStrs.split(",");
    this.documentConverter = new DocumentConverter(fieldslist,"solrconfig.xml", "schema.xml");
    heartBeater = new HeartBeater(context);
    heartBeater.needHeartBeat();

    shardWriter = this.initShardWriter(context);
    shardWriter.getDir().setAllowLinks(true);
View Full Code Here

Examples of com.alimama.mdrill.index.utils.DocumentConverter

    heartBeater.needHeartBeat();
    this.doclistcache=new DocumentList();
    this.ramMerger = new RamWriter();

    String[] fieldslist = fieldStrs.split(",");
    this.documentConverter = new DocumentConverter(fieldslist,"solrconfig.xml", "schema.xml");
    shardWriter = this.initShardWriter(context);
    LOG.info("end initShardWriter");

    try {
      this.analyzer = this.documentConverter .getAnalyzer();JobIndexPublic.setAnalyzer(conf);
View Full Code Here

Examples of com.artofsolving.jodconverter.DocumentConverter

        }
        try {
         
         
          // choose the good constructor to deal with the conversion
          DocumentConverter converter;
          if(dokeosMode.equals("oogie")){
            converter = new OogieDocumentConverter(connection, new DokeosDocumentFormatRegistry(), width, height);
          }
          else if(dokeosMode.equals("woogie")){
            converter = new WoogieDocumentConverter(connection, new DokeosDocumentFormatRegistry(), width, height);
View Full Code Here

Examples of com.artofsolving.jodconverter.DocumentConverter

                    .println("ERROR: connection failed. Please make sure OpenOffice.org is running and listening on port "
                            + port + ".");
            System.exit(EXIT_CODE_CONNECTION_FAILED);
        }
        try {
            DocumentConverter converter = new OpenOfficeDocumentConverter(connection);
            if (outputFormat == null) {
                File inputFile = new File(fileNames[0]);
                File outputFile = new File(fileNames[1]);
                convertOne(converter, inputFile, outputFile, verbose);
            } else {
View Full Code Here

Examples of com.artofsolving.jodconverter.DocumentConverter

        } catch (ConnectException officeNotRunning) {
            System.err.println("ERROR: connection failed. Please make sure OpenOffice.org is running and listening on port " + port + ".");
            System.exit(EXIT_CODE_CONNECTION_FAILED);
        }
        try {
            DocumentConverter converter = new OpenOfficeDocumentConverter(connection, registry);
            if (outputFormat == null) {
                File inputFile = new File(fileNames[0]);
                File outputFile = new File(fileNames[1]);
                convertOne(converter, inputFile, outputFile, verbose);
            } else {
View Full Code Here

Examples of com.artofsolving.jodconverter.DocumentConverter

    //--------------------------------------------
    // Connect to server and create the converter
    //--------------------------------------------
   
    DocumentConverter converter = new OpenOfficeDocumentConverter(aConnection);
       
    //---------------------------------------------
    // Convert the document to the selected format
    //---------------------------------------------
   
    logger.info("Converting from " + aInputFile.getPath() + " to " + aOutputFile.getPath());
   
    converter.convert(aInputFile, aOutputFile);
   
    logger.info("Conversion complete");
  }
View Full Code Here

Examples of com.artofsolving.jodconverter.DocumentConverter

                "Start with: soffice -accept=\"socket,host=127.0.0.1,port=" + port + ";urp;\"", connectException);
        }
       
        getLog().info("Converting documents from " + sourceDirectory + " to " + outputDirectory + " ...");
        try {
            DocumentConverter converter = new OpenOfficeDocumentConverter(connection);
            for (int inputIndex = 0; inputIndex < sourceNames.length; inputIndex++) {
                String inputName = sourceNames[inputIndex];
                File inputFile = FileUtils.resolveFile(sourceDirectory, inputName);
                for (int formatIndex = 0; formatIndex < outputFormats.length; formatIndex++) {
                    String format = outputFormats[formatIndex];
                    String outputName = FileUtils.removeExtension(inputName) + "." + format;
                    File outputFile = FileUtils.resolveFile(outputDirectory, outputName);
                    getLog().info("converting " + inputName + " to " + outputName);
                    converter.convert(inputFile, outputFile);
                }
            }
        } finally {
            connection.disconnect();
        }
View Full Code Here

Examples of com.artofsolving.jodconverter.DocumentConverter

        } catch (ConnectException officeNotRunning) {
            System.err.println("ERROR: connection failed. Please make sure OpenOffice.org is running and listening on port "+ SocketOpenOfficeConnection.DEFAULT_PORT +".");
            return EXIT_CODE_CONNECTION_FAILED;
        }
        try {
            DocumentConverter converter = new OpenOfficeDocumentConverter(connection);
            converter.convert(inputFile, outputFile);
        } finally {
            connection.disconnect();
        }
        return EXIT_CODE_SUCCESS;
    }
View Full Code Here

Examples of com.overzealous.remark.convert.DocumentConverter

      // we need to allow the table nodes to be ignored
      // since they are automatically ignored recursively, this is the only node we worry about.
      options.getIgnoredHtmlElements().add(IgnoredHtmlElement.create("table"));
    }

    converter = new DocumentConverter(options);
  }
View Full Code Here

Examples of org.apache.metamodel.convert.DocumentConverter

        return _schemaBuilder.getSchemaName();
    }

    @Override
    protected DataSet materializeMainSchemaTable(Table table, Column[] columns, int maxRows) {
        final DocumentConverter documentConverter = _schemaBuilder.getDocumentConverter(table);
        final SelectItem[] selectItems = MetaModelHelper.createSelectItems(columns);
        final DataSetHeader header = new CachingDataSetHeader(selectItems);
        final DocumentSource documentSource = getDocumentSourceForTable(table.getName());

        DataSet dataSet = new DocumentSourceDataSet(header, documentSource, documentConverter);
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.