Class OdfFileEntry


  • public class OdfFileEntry
    extends Object
    • Constructor Detail

      • OdfFileEntry

        public OdfFileEntry​(FileEntryElement fileEntryElement)
        Parameters:
        fileEntryElement - the OdfElement of the
    • Method Detail

      • setPath

        public void setPath​(String path)
      • getPath

        public String getPath()
      • setMediaTypeString

        public void setMediaTypeString​(String mediaType)
        Parameters:
        mediaType - of the file. Use null or an empty string to unset the mediaType to an empty string.
      • getMediaTypeString

        public String getMediaTypeString()
        Returns:
        the mediatype of the mandatory <manifest:file-entry> attribute. If no mediatype exists an empty string is returned
      • getMediaTypeString

        public static String getMediaTypeString​(String fileRef)
        Get the media type from the given file reference
        Parameters:
        fileRef - the reference to the file the media type is questioned
        Returns:
        the mediaType string of the given file reference
      • setSize

        public void setSize​(Integer size)
      • getSize

        public Integer getSize()
        Get the size.
      • getEncryptionData

        public EncryptionDataElement getEncryptionData()
        Returns:
        null if no encryption data had been set
      • getOdfElement

        public FileEntryElement getOdfElement()
        Gets the OdfElement of this OdfFileEntry.
        Returns:
        the OdfElement of this OdfFileEntry.