Examples of Information


Examples of org.nfctools.llcp.pdu.Information

  public void sendMessage(byte[] message) {
    if (message.length > getMaximumInformationUnit())
      throw new IllegalArgumentException("Message too long. Maximum Information Unit is "
          + getMaximumInformationUnit());

    messageToSend = new Information(addressPair.getRemote(), addressPair.getLocal(), getReceivedSequence(),
        getSendSequence(), message);
    incSendSequence();
  }
View Full Code Here

Examples of org.pdfclown.documents.interchange.metadata.Information

  private void buildPdf_metadata(
    Document document
    )
  {
    // Document metadata.
    Information info = new Information(document);
    document.setInformation(info);
    info.setAuthor("Stefano Chizzolini");
    info.setCreationDate(new Date());
    info.setCreator(HelloWorld.class.getName());
    info.setTitle("Sample document");
    info.setSubject("Online PDF creation sample through servlet.");
  }
View Full Code Here

Examples of org.pdfclown.documents.interchange.metadata.Information

    ViewerPreferences view = new ViewerPreferences(document); // Instantiates viewer preferences inside the document context.
    document.setViewerPreferences(view); // Assigns the viewer preferences object to the viewer preferences function.
    view.setDisplayDocTitle(true);

    // Document metadata.
    Information info = new Information(document);
    document.setInformation(info);
    info.setAuthor("Stefano Chizzolini");
    info.setCreationDate(new Date());
    info.setCreator(getClass().getName());
    info.setTitle("PDF Clown - " + title + " sample");
    info.setSubject("Sample about " + subject + " using PDF Clown");
  }
View Full Code Here

Examples of org.pdfclown.documents.interchange.metadata.Information

  {
    PdfDirectObject informationObject = getFile().getTrailer().get(PdfName.Info);
    if(informationObject == null)
      return null;

    return new Information(informationObject);
  }
View Full Code Here

Examples of org.pdfclown.documents.interchange.metadata.Information

    Document document = file.getDocument();

    // 2. Document parsing.
    // 2.1. Showing basic metadata...
    System.out.println("\nDocument information:");
    Information info = document.getInformation();
    if(info == null)
    {System.out.println("No information available (Info dictionary doesn't exist).");}
    else
    {
      System.out.println("Author: " + info.getAuthor());
      System.out.println("Title: " + info.getTitle());
      System.out.println("Subject: " + info.getSubject());
      System.out.println("CreationDate: " + info.getCreationDate());
    }

    System.out.println("\nIterating through the indirect-object collection (please wait)...");

    // 2.2. Counting the indirect objects, grouping them by type...
View Full Code Here

Examples of org.tei.comparator.web.client.Information

   * @param id
   * @param master2
   * @return
   */
  private Information getInformationFor(String id, Document doc) {
    Information info = new Information(id);
   
    Element el = getElementFor(id, doc);
    if(null != el){
      // build path for element
      String path = "";
      StringBuffer header = new StringBuffer();
      StringBuffer staticUrl = new StringBuffer();
      StringBuffer staticUrlAnchor = new StringBuffer();
      path = buildPath(el, path, header, staticUrl, staticUrlAnchor);
      info.setPath(path);
     
      // get pagenumber
      info.setPageNumber(getLastPageNumber(el));
      info.setHeader(header.toString());
     
      // update url
      String prefixUrl = PropertiesProvider.getInstance().getStaticDisplayURLPrefix();
      String prefix =  ((file1 == doc) ? PropertiesProvider.getInstance().getStaticDisplayPrefixFile1() : PropertiesProvider.getInstance().getStaticDisplayPrefixFile2());
      String displayStaticUrl = prefixUrl + prefix + staticUrl.toString().substring(1) + ".html#" + prefix + staticUrlAnchor.toString().substring(1);
      info.setLinkToStaticDisplay(displayStaticUrl);
    }
   
    return info;
  }
View Full Code Here

Examples of rs.frenjoynet.core.core.entity.db.Information

    activeSession.setEmail(login);
    activeSession.setWebSessionUid(webSessionUid);
    activeSession.setGuid(guid);
    activeSession.setLoginKind(loginKind);

    Information inf = new Information();
    inf.setFirstName("Firstname["+login+"]");
    inf.setLastName("lastname["+password+"]");
    activeSession.setInformation(inf);

    setActiveSession(activeSession);

    return activeSession;
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.