Class CosSaveParams

    • Constructor Detail

      • CosSaveParams

        public CosSaveParams​(int saveStyle)
        Constructor with specified save style.
    • Method Detail

      • setHeader

        public void setHeader​(String header)
        Sets header to sue while saving.
      • getHeader

        public String getHeader()
        Returns header.
      • getHeaderToken

        public String getHeaderToken()
        Returns header token.
      • setVersion

        public void setVersion​(String version)
        Sets version to save with.
      • getVersion

        public String getVersion()
        Returns version to save with.
      • getExtensions

        public Map getExtensions()
        Returns version extensions.
      • setExtensions

        public void setExtensions​(Map extensions)
        Sets version extensions to use.
      • setXrefStyle

        public void setXrefStyle​(int xrefstyle)
        Parameters:
        xrefstyle - - int enum for specifying full save xref style: CURRENT_XREF - use existing style (default for existing document) XREFTABLE - xref table (default for new document) XREFSTREAM - xref stream (required if compressed object streams) XREFHYBRID - hybrid (compressed object streams only visible to v 1.5 or later)
      • getXrefStyle

        public int getXrefStyle()
        Returns xref style to save with.
      • setSaveStyle

        public void setSaveStyle​(int saveStyle)
        Sets save style to save with.
      • getSaveStyle

        public int getSaveStyle()
        Returns save style to save with.
      • setCloseAfterSave

        public void setCloseAfterSave​(boolean closeAfterSave)
        Sets true if document to be closed after save.
      • getCloseAfterSave

        public boolean getCloseAfterSave()
        Returns true if document to be closed after save.
      • setForceCompress

        public void setForceCompress​(boolean forceCompress)
        Specifies if force compression to be used.
      • getForceCompress

        public boolean getForceCompress()
        Returns true if force compression to be used.
      • setTempByteWriter

        public void setTempByteWriter​(ByteWriter tempByteWriter)
        Only for internal engineering use. This api can change without notice.
      • getTempByteWriter

        public ByteWriter getTempByteWriter()
        Only for internal engineering use. This api can change without notice.
      • setSaveToCopy

        public void setSaveToCopy​(boolean saveToCopy)
        Save the CosDocument to the ByteWriter given during save but do NOT make it the backing store and continue to use the existing one.
        Parameters:
        saveToCopy - will document be saved as a copy
      • getSaveToCopy

        public boolean getSaveToCopy()
        Save the CosDocument to the ByteWriter given during save but do NOT make it the backing store and continue to use the existing one.
      • clone

        public Object clone()
        Produce a simple, shallow clone.