org.openoffice.ide.eclipse.core.utils
Class ZipContent
java.lang.Object
org.openoffice.ide.eclipse.core.utils.ZipContent
public class ZipContent
- extends java.lang.Object
This class is a small structure containing the data to ZIP for one file.
- Author:
- cedricbosdo
Field Summary |
protected java.lang.String |
mEntryName
|
protected java.io.File |
mFile
|
Constructor Summary |
ZipContent(java.lang.String pEntryName,
java.io.File pFile)
Constructor. |
Method Summary |
java.io.File |
getFile()
|
void |
writeContentToZip(java.util.zip.ZipOutputStream pOutput)
Write the ZIP entry to the given Zip output stream. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
mFile
protected java.io.File mFile
mEntryName
protected java.lang.String mEntryName
ZipContent
public ZipContent(java.lang.String pEntryName,
java.io.File pFile)
- Constructor.
- Parameters:
pEntryName
- the name in the ZIP filepFile
- the file to put in the ZIP file.
getFile
public java.io.File getFile()
- Returns:
- the file represented by the
ZipEntry
writeContentToZip
public void writeContentToZip(java.util.zip.ZipOutputStream pOutput)
- Write the ZIP entry to the given Zip output stream.
- Parameters:
pOutput
- the stream where to write the entry data.