Examples of Doc


Examples of enzyme.database.Doc

              //Ϊÿ���ĵ�����
              for (int i = 0; i < size; i++) {
               
                //���½���������
                progressBar.setValue(i + 1);
                Doc doc = (Doc) docs.get(i);
                docList.append(doc.getId() + ":"
                    + doc.getDocTitle() + "\n");
                progressBar.repaint();
                docListSP.getVerticalScrollBar().setValue(
                    docListSP.getVerticalScrollBar()
                        .getMaximum());
                progressBar.repaint();

               
                Document d = new Document();
                //Ϊ�ĵ���ÿ���ֶμ���������
                d.add(new Field("id", "" + doc.getId(),
                    Field.Store.YES,
                    Field.Index.NOT_ANALYZED));
                d.add(new Field("docAuthor",
                    doc.getDocAuthor() == null ? "" : doc
                        .getDocAuthor(),
                    Field.Store.YES,
                    Field.Index.NOT_ANALYZED));
                d.add(new Field("docContent", doc
                    .getDocContent() == null ? "" : doc
                    .getDocContent(), Field.Store.NO,
                    Field.Index.ANALYZED));
                d.add(new Field("docFilePath", doc
                    .getDocFilePath() == null ? "" : doc
                    .getDocFilePath(), Field.Store.YES,
                    Field.Index.NOT_ANALYZED));
                d.add(new Field("docKey",
                    doc.getDocKey() == null ? "" : doc
                        .getDocKey(), Field.Store.YES,
                    Field.Index.NOT_ANALYZED));
                d.add(new Field("docPublishDate", doc
                    .getDocPublishDate() == null ? "" : doc
                    .getDocPublishDate(), Field.Store.YES,
                    Field.Index.NOT_ANALYZED));
                d.add(new Field("docTitle",
                    doc.getDocTitle() == null ? "" : doc
                        .getDocTitle(),
                    Field.Store.YES,
                    Field.Index.NOT_ANALYZED));
                d.add(new Field("docTypeId", ""
                    + doc.getDocTypeId(), Field.Store.YES,
                    Field.Index.NOT_ANALYZED));
                writer.addDocument(d);

              }
              System.out.println(writer.docCount());
View Full Code Here

Examples of fr.eolya.simplepipeline.document.Doc

    sc.getLogger().log("[" + id + "] processing : " + fileName);
    System.out.println("[" + id + "] processing : " + fileName);

    File f = new File(fileName);
    try {
      Doc d = new Doc(f);
      if (d != null) {
        processing = true;
        stageList.processDoc(d);
        if (stageList.getStagesStatus() == StageList.STATUS_ERROR) {
          //Utils.sleep(10+(id*3));
 
View Full Code Here

Examples of it.highwaytech.db.Doc

    if (xQuery != null) {
      qr = find(connection, theDb, xQuery, "", ServerCommand.find_SORT, adjacency, 0, null);
      if (qr != null) {
        result = new String[qr.elements];
        for (int i = 0; i < qr.elements; i++) {
          Doc doc = getDoc(connection, theDb, qr, i, 0, ServerCommand.load_noHilight);
          result[i] = doc.XML();
        }
      }
    } else {
      throw new XWException("xQuery must not be null");
    }
View Full Code Here

Examples of javax.print.Doc

                                                          attributes);

            if (service != null) {
              final PrintRequestAttributeSet final_attributes = attributes;

              final Doc myDoc = new SimpleDoc(messagePrinter, messageFormat, null);

              final DocPrintJob final_job = service.createPrintJob();

              final MessagePrinterDisplay mpd = new MessagePrinterDisplay(messagePrinter, final_job, final_source);
View Full Code Here

Examples of javax.print.Doc

                    Debug.logInfo("Adding DocAttribute: " + da, module);
                    docAttributeSet.add((DocAttribute) da);
                }
            }

            Doc myDoc = new SimpleDoc(bais, psInFormat, docAttributeSet);

            PrintService printer = null;

            // lookup the print service for the supplied printer name
            String printerName = (String) serviceContext.remove("printerName");
View Full Code Here

Examples of javax.print.Doc

            throw new ViewHandlerException("Unable write to browser OutputStream", e);
        }
        */

        DocFlavor docFlavor = DocFlavor.BYTE_ARRAY.PDF;
        Doc myDoc = new SimpleDoc(out.toByteArray(), docFlavor, null);
        PrintRequestAttributeSet aset = new HashPrintRequestAttributeSet();
        aset.add(new Copies(1));
        //aset.add(MediaSize.A4);
        aset.add(Sides.ONE_SIDED);

View Full Code Here

Examples of javax.print.Doc

        Result res = new SAXResult(fop.getDefaultHandler());

        // Start XSLT transformation and FOP processing
        transformer.transform(src, res);

        Doc doc = new SimpleDoc(renderer, DocFlavor.SERVICE_FORMATTED.PAGEABLE, null);
        printJob.print(doc, null);
    }
View Full Code Here

Examples of javax.print.Doc

                aset.add(OrientationRequested.PORTRAIT);
                aset.add(new JobName(AppLocal.APP_NAME + " - Document", null));
                aset.add(media);

                DocPrintJob printjob = ps.createPrintJob();
                Doc doc = new SimpleDoc(new PrintableBasicTicket(m_ticketcurrent, imageable_x, imageable_y, imageable_width, imageable_height), DocFlavor.SERVICE_FORMATTED.PRINTABLE, null);

                printjob.print(doc, aset);
            }

        } catch (PrintException ex) {
View Full Code Here

Examples of javax.print.Doc

                "A" + (offset+pixA[9]) + ",180,0,1,1,1,N,\"" +"AGENCIA "  + Shared.getConfig("storeName") +"\"\n"+
                "B" + (offset+pixA[10]) + ",130,0,1,1,2,100,N,\"" + barCode + "\"\n"+
                "P" + firstLot + "\n";

            DocFlavor flavor = DocFlavor.BYTE_ARRAY.AUTOSENSE;
            Doc doc = new SimpleDoc(buff.getBytes(), flavor, null);
            job.print(doc, null);
        } catch (PrintException ex) {
            MessageBox msb = new MessageBox(MessageBox.SGN_DANGER, "Problemas con la impresora.",ex);
            msb.show(Shared.getMyMainWindows());
        }
View Full Code Here

Examples of javax.print.Doc

                "A" + pixA[9] + ",180,0,1,1,1,N,\"" +"AGENCIA "  + Shared.getConfig("storeName") +"\"\n"+
                "B" + pixA[10] + ",130,0,1,1,2,100,N,\"" + barCode + "\"\n"+
                "P1\n";

            DocFlavor flavor = DocFlavor.BYTE_ARRAY.AUTOSENSE;
            Doc doc = new SimpleDoc(buff.getBytes(), flavor, null);
            job.print(doc, null);
        } catch (PrintException ex) {
            MessageBox msb = new MessageBox(MessageBox.SGN_DANGER, "Problemas con la impresora.",ex);
            msb.show(Shared.getMyMainWindows());
        }
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.