org.odftoolkit.odfdom.pkg.manifest
Class OdfFileEntry
java.lang.Object
org.odftoolkit.odfdom.pkg.manifest.OdfFileEntry
public class OdfFileEntry
- extends java.lang.Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OdfFileEntry
public OdfFileEntry()
OdfFileEntry
public OdfFileEntry(java.lang.String path,
java.lang.String mediaType)
OdfFileEntry
public OdfFileEntry(java.lang.String path,
java.lang.String mediaType,
int size)
setPath
public void setPath(java.lang.String path)
getPath
public java.lang.String getPath()
setMediaType
public void setMediaType(java.lang.String mediaType)
getMediaType
public java.lang.String getMediaType()
getMediaType
public static java.lang.String getMediaType(java.lang.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(int size)
getSize
public int getSize()
- get the size or -1 if not set
setEncryptionData
public void setEncryptionData(EncryptionData encryptionData)
getEncryptionData
public EncryptionData getEncryptionData()
Copyright © 2008-2010 ODF Toolkit Project. All Rights Reserved.