Class PDFDestination

  • All Implemented Interfaces:
    PDFWritable

    public class PDFDestination
    extends PDFObject
    class representing a named destination
    • Field Detail

      • idRef

        private java.lang.String idRef
        ID Reference for this destination
      • goToReference

        private java.lang.Object goToReference
        PDFReference (object reference) for this destination
    • Constructor Detail

      • PDFDestination

        public PDFDestination​(java.lang.String idRef,
                              java.lang.Object goToRef)
        Create a named destination
        Parameters:
        idRef - ID Reference for this destination (the name of the destination)
        goToRef - Object reference to the GoTo Action
    • Method Detail

      • output

        public int output​(java.io.OutputStream stream)
                   throws java.io.IOException
        Description copied from class: PDFObject
        Write the PDF represention of this object
        Overrides:
        output in class PDFObject
        Parameters:
        stream - the stream to write the PDF to
        Returns:
        the number of bytes written
        Throws:
        java.io.IOException - if there is an error writing to the stream
      • setGoToReference

        @Deprecated
        public void setGoToReference​(java.lang.String goToReference)
        Deprecated.
        use setGoToReference(Object) instead
        Sets the GoToReference in the associated DestinationData object.
        Parameters:
        goToReference - the reference to set in the associated DestinationData object.
      • setGoToReference

        public void setGoToReference​(java.lang.Object goToReference)
        Sets the GoToReference in the associated DestinationData object.
        Parameters:
        goToReference - the reference to set in the associated DestinationData object.
      • getGoToReference

        public java.lang.Object getGoToReference()
        Returns the GoToReference from the associated DestinationData object.
        Returns:
        the GoToReference from the associated DestinationData object.
      • getIDRef

        public java.lang.String getIDRef()
        Returns the RefID from the associated DestinationData object.
        Returns:
        the RefID from the associated DestinationData object.
      • equals

        public boolean equals​(java.lang.Object obj)
        Check if this equals another object.
        Overrides:
        equals in class java.lang.Object
        Parameters:
        obj - the object to compare
        Returns:
        true if this equals other object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object