Class ExHyperlink


public class ExHyperlink extends RecordContainer
This class represents the data of a link in the document.
Author:
Nick Burch
  • Constructor Details

    • ExHyperlink

      protected ExHyperlink(byte[] source, int start, int len)
      Set things up, and find our more interesting children
    • ExHyperlink

      public ExHyperlink()
      Create a new ExHyperlink, with blank fields
  • Method Details

    • getExHyperlinkAtom

      public ExHyperlinkAtom getExHyperlinkAtom()
      Returns the ExHyperlinkAtom of this link
    • getLinkURL

      public String getLinkURL()
      Returns the URL of the link.
      Returns:
      the URL of the link
    • getLinkTitle

      public String getLinkTitle()
      Returns the hyperlink's user-readable name
      Returns:
      the hyperlink's user-readable name
    • setLinkURL

      public void setLinkURL(String url)
      Sets the URL of the link TODO: Figure out if we should always set both
    • setLinkOptions

      public void setLinkOptions(int options)
    • setLinkTitle

      public void setLinkTitle(String title)
    • _getDetailsA

      public String _getDetailsA()
      Get the link details (field A)
    • _getDetailsB

      public String _getDetailsB()
      Get the link details (field B)
    • getRecordType

      public long getRecordType()
      We are of type 4055
      Specified by:
      getRecordType in class Record
    • writeOut

      public void writeOut(OutputStream out) throws IOException
      Write the contents of the record back, so it can be written to disk
      Specified by:
      writeOut in class Record
      Throws:
      IOException