Class OdfFileEntry
java.lang.Object
org.odftoolkit.odfdom.pkg.manifest.OdfFileEntry
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetCopy()static StringgetMediaTypeString(String fileRef) Get the media type from the given file referenceGets the OdfElement of this OdfFileEntry.getPath()getSize()Get the size.voidsetEncryptionData(EncryptionDataElement encryptionData) voidsetMediaTypeString(String mediaType) voidvoid
-
Constructor Details
-
OdfFileEntry
- Parameters:
fileEntryElement- the OdfElement of the <manifest:file-entry>
-
-
Method Details
-
getCopy
-
setPath
-
getPath
-
setMediaTypeString
- Parameters:
mediaType- of the file. Usenullor an empty string to unset the mediaType to an empty string.
-
getMediaTypeString
- Returns:
- the mediatype of the mandatory <manifest:file-entry> attribute. If no mediatype exists an empty string is returned
-
getMediaTypeString
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
-
getSize
Get the size. -
setEncryptionData
-
getEncryptionData
- Returns:
- null if no encryption data had been set
-
getOdfElement
Gets the OdfElement of this OdfFileEntry.- Returns:
- the OdfElement of this OdfFileEntry.
-