Class JDFPreview

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, IStreamWriter, IURLSetter, org.w3c.dom.Element, org.w3c.dom.ElementTraversal, org.w3c.dom.events.EventTarget, org.w3c.dom.Node, org.w3c.dom.NodeList, org.w3c.dom.TypeInfo

    public class JDFPreview
    extends JDFAutoPreview
    implements IURLSetter
    See Also:
    Serialized Form
    • Constructor Detail

      • JDFPreview

        public JDFPreview​(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument,
                          java.lang.String qualifiedName)
                   throws org.w3c.dom.DOMException
        Constructor for JDFPreview
        Parameters:
        myOwnerDocument -
        qualifiedName -
        Throws:
        org.w3c.dom.DOMException
      • JDFPreview

        public JDFPreview​(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument,
                          java.lang.String myNamespaceURI,
                          java.lang.String qualifiedName)
                   throws org.w3c.dom.DOMException
        Constructor for JDFPreview
        Parameters:
        myOwnerDocument -
        myNamespaceURI -
        qualifiedName -
        Throws:
        org.w3c.dom.DOMException
      • JDFPreview

        public JDFPreview​(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument,
                          java.lang.String myNamespaceURI,
                          java.lang.String qualifiedName,
                          java.lang.String myLocalName)
                   throws org.w3c.dom.DOMException
        Constructor for JDFPreview
        Parameters:
        myOwnerDocument -
        myNamespaceURI -
        qualifiedName -
        myLocalName -
        Throws:
        org.w3c.dom.DOMException
    • Method Detail

      • getURLInputStream

        public java.io.InputStream getURLInputStream()
        get the input stream that reads from URL
        Specified by:
        getURLInputStream in interface IURLSetter
        Returns:
        InputStream the input stream that the url points to, null if the url is inaccessible
      • getUserFileName

        public java.lang.String getUserFileName()
        Specified by:
        getUserFileName in interface IURLSetter
        Returns:
        the filename of this; null if not implemented
      • setPreviewFileType

        public void setPreviewFileType​(JDFPreview.EnumPreviewFileType enumPreviewFileType)
        this method is provided for backwards compatibility with enum previewfiletype
        Parameters:
        enumPreviewFileType -
      • getEnumPreviewFileType

        public JDFPreview.EnumPreviewFileType getEnumPreviewFileType()
        this method is provided for backwards compatibility with enum previewfiletype
        Returns:
        the value of the attribute
      • getCreateFileSpec

        public JDFFileSpec getCreateFileSpec()
        (25) getCreateFileSpec
        Returns:
        JDFFileSpec the element
      • getFileSpec

        public JDFFileSpec getFileSpec()
        get RunList/LayoutElement/FileSpec or RunList/FileSpec in case of XJDF
        Returns:
        JDFFileSpec FileSpec if it exists, else null
      • getFileURL

        public java.lang.String getFileURL()
        get RunList/LayoutElement/FileSpec/@URL also evaluate RunList/@directory and concatinate Directory + URL in case URL is a relative URL
        Returns:
        URL if a URL or Directory attribute exists, else null
      • setFileSpecURL

        public boolean setFileSpecURL​(java.lang.String url)
        set RunList/FileSpec/@URL - only for 2.0
        Parameters:
        url - the url to set
        Returns:
        true if ok