org.gcube.portlets.user.homelibrary.util.zip.zipmodel
Class ZipFile

java.lang.Object
  extended by org.gcube.portlets.user.homelibrary.util.zip.zipmodel.AbstractZipItem
      extended by 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

Field Summary
protected  File contentFile
           
protected  InputStream contentStream
           
 
Fields inherited from class org.gcube.portlets.user.homelibrary.util.zip.zipmodel.AbstractZipItem
comment, extra, name, parent, type
 
Constructor Summary
ZipFile(InputStream contentStream, String name, String comment)
          Create a new zip file type.
ZipFile(ZipFolder parent, File contentFile, String name, String comment, byte[] extra)
          Create a new zip file type.
ZipFile(ZipFolder parent, InputStream contentStream, String name, String comment)
          Create a new zip file type.
 
Method Summary
 File getContentFile()
           
 InputStream getContentStream()
          Returns the content stream.
 
Methods inherited from class org.gcube.portlets.user.homelibrary.util.zip.zipmodel.AbstractZipItem
getComment, getExtra, getName, getParent, getPath, getType, setName, setParent, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

contentFile

protected File contentFile

contentStream

protected InputStream contentStream
Constructor Detail

ZipFile

public ZipFile(ZipFolder parent,
               File contentFile,
               String name,
               String comment,
               byte[] extra)
Create a new zip file type.

Parameters:
parent - the file parent
contentFile - 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 parent
contentStream - 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.
Method Detail

getContentFile

public File getContentFile()
Returns:
the contentFile

getContentStream

public InputStream getContentStream()
Returns the content stream.

Returns:


Copyright © 2013. All Rights Reserved.