org.gcube.portlets.user.homelibrary.util.zip.zipmodel
Class ZipFile
java.lang.Object
org.gcube.portlets.user.homelibrary.util.zip.zipmodel.AbstractZipItem
org.gcube.portlets.user.homelibrary.util.zip.zipmodel.ZipFile
- All Implemented Interfaces:
- ZipItem
public class ZipFile
- extends AbstractZipItem
- Author:
- Federico De Faveri defaveri@isti.cnr.it
contentFile
protected File contentFile
contentStream
protected InputStream contentStream
ZipFile
public ZipFile(ZipFolder parent,
File contentFile,
String name,
String comment,
byte[] extra)
- Create a new zip file type.
- Parameters:
parent - the file parentcontentFile - the content file.name - the file name.comment - the file comment.extra - the file extra field.
ZipFile
public ZipFile(ZipFolder parent,
InputStream contentStream,
String name,
String comment)
- Create a new zip file type.
- Parameters:
parent - the file parentcontentStream - the content stream.name - the file name.comment - the file comment.extra - the file extra field.
ZipFile
public ZipFile(InputStream contentStream,
String name,
String comment)
- Create a new zip file type.
- Parameters:
contentStream - the content stream.name - the file name.comment - the file comment.
getContentFile
public File getContentFile()
- Returns:
- the contentFile
getContentStream
public InputStream getContentStream()
- Returns the content stream.
- Returns:
Copyright © 2013. All Rights Reserved.