Class OdfFileEntry
java.lang.Object
org.odftoolkit.odfdom.pkg.manifest.OdfFileEntry
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetCopy()
static String
getMediaTypeString
(String fileRef) Get the media type from the given file referenceGets the OdfElement of this OdfFileEntry.getPath()
getSize()
Get the size.void
setEncryptionData
(EncryptionDataElement encryptionData) void
setMediaTypeString
(String mediaType) void
void
-
Constructor Details
-
OdfFileEntry
- Parameters:
fileEntryElement
- the OdfElement of the <manifest:file-entry>
-
-
Method Details
-
getCopy
-
setPath
-
getPath
-
setMediaTypeString
- Parameters:
mediaType
- of the file. Usenull
or 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.
-