Package net.sf.jpluck.plucker

Examples of net.sf.jpluck.plucker.Link


        this.alt = alt;
    }

    public void write(PdbOutputStream out) throws IOException {
        int recordId = linkResolver.resolve(uri).getRecordId();
        Link fullSizeLink= linkResolver.resolve(uri + ".alternate");
        if (fullSizeLink != null) {
            out.writeByte(Function.MULTIPLE_EMBEDDED_IMAGE);
            out.writeShort(fullSizeLink.getRecordId());
            out.writeShort(recordId);
        } else {
            out.writeByte(Function.EMBEDDED_IMAGE);
            out.writeShort(recordId);
        }
View Full Code Here


  public LinkStart(String uri) {
    super(uri);
  }

  public void write(PdbOutputStream out) throws IOException {
    Link link = linkResolver.resolve(uri);
    if (link != null) {
      int recordId = link.getRecordId();
      int paragraph = link.getParagraph();
      if (paragraph == -1) {
        out.writeByte(Function.PAGE_LINK_BEGINS);
                out.writeShort(recordId);
      } else {
        out.writeByte(Function.PARAGRAPH_LINK_BEGINS);
View Full Code Here

TOP

Related Classes of net.sf.jpluck.plucker.Link

Copyright © 2018 www.massapicom. 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.