public class OdfFileEntry extends Object
Constructor and Description |
---|
OdfFileEntry(FileEntryElement fileEntryElement) |
Modifier and Type | Method and Description |
---|---|
EncryptionDataElement |
getEncryptionData() |
String |
getMediaTypeString() |
static String |
getMediaTypeString(String fileRef)
Get the media type from the given file reference
|
FileEntryElement |
getOdfElement()
Gets the OdfElement of this OdfFileEntry.
|
String |
getPath() |
Integer |
getSize()
Get the size.
|
void |
setEncryptionData(EncryptionDataElement encryptionData) |
void |
setMediaTypeString(String mediaType) |
void |
setPath(String path) |
void |
setSize(Integer size) |
public OdfFileEntry(FileEntryElement fileEntryElement)
fileEntryElement
- the OdfElement of the public void setPath(String path)
public String getPath()
public void setMediaTypeString(String mediaType)
mediaType
- of the file. Use null
or an empty string to unset
the mediaType to an empty string.public String getMediaTypeString()
public static String getMediaTypeString(String fileRef)
fileRef
- the reference to the file the media type is questionedpublic void setSize(Integer size)
public Integer getSize()
public void setEncryptionData(EncryptionDataElement encryptionData)
public EncryptionDataElement getEncryptionData()
public FileEntryElement getOdfElement()
Copyright © 2008-2013 The Apache Software Foundation. All Rights Reserved.