org.odftoolkit.odfdom.pkg.manifest
Class OdfFileEntry

java.lang.Object
  extended by org.odftoolkit.odfdom.pkg.manifest.OdfFileEntry

public class OdfFileEntry
extends java.lang.Object


Constructor Summary
OdfFileEntry()
           
OdfFileEntry(java.lang.String path, java.lang.String mediaType)
           
OdfFileEntry(java.lang.String path, java.lang.String mediaType, int size)
           
 
Method Summary
 EncryptionData getEncryptionData()
           
 java.lang.String getMediaType()
           
static java.lang.String getMediaType(java.lang.String fileRef)
          Get the media type from the given file reference
 java.lang.String getPath()
           
 int getSize()
          get the size or -1 if not set
 void setEncryptionData(EncryptionData encryptionData)
           
 void setMediaType(java.lang.String mediaType)
           
 void setPath(java.lang.String path)
           
 void setSize(int size)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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)
Method Detail

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.