Skip navigation links

Oracle® Fusion Middleware Site Studio for External Applications Java API Reference
11g Release 1 (11.1.1)

E17273-01


oracle.stellent.wcm.common.io
Class ZipStreamInflator

java.lang.Object
  extended by oracle.stellent.wcm.common.io.ZipStreamInflator


public class ZipStreamInflator
extends java.lang.Object

Nested Class Summary
static class ZipStreamInflator.FileOverwriteAction
           

 

Constructor Summary
ZipStreamInflator(java.util.zip.ZipInputStream zipStream, java.io.File rootDirectory)
          Inflates an archive file of staged content.

 

Method Summary
protected  void createFile(java.io.File fileOnDisk)
          Create the file on the disk
protected  ZipStreamInflator.FileOverwriteAction getOverwriteAction(java.io.File fileOnDisk)
          Determines how the file that already existed locally should be replaced.
 java.io.File getRootDirectory()
           
protected  java.lang.String getZipEntryPath(java.lang.String zipEntry)
          Retrieve the zip entry path
 java.util.zip.ZipInputStream getZipStream()
           
 java.lang.String inflate()
          Inflate the zip stream

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

ZipStreamInflator

public ZipStreamInflator(java.util.zip.ZipInputStream zipStream,
                         java.io.File rootDirectory)
Inflates an archive file of staged content.
Parameters:
zipStream - archive to inflate
rootDirectory - root dir we are inflating to.

Method Detail

getRootDirectory

public java.io.File getRootDirectory()
Returns:
the root directory where the staging files will be unpacked

getZipStream

public java.util.zip.ZipInputStream getZipStream()
Returns:
the zip inputstream to be inflated

inflate

public java.lang.String inflate()
                         throws java.io.IOException
Inflate the zip stream
Throws:
java.io.IOException

createFile

protected void createFile(java.io.File fileOnDisk)
                   throws java.io.IOException
Create the file on the disk
Parameters:
fileOnDisk - the file to create
Throws:
java.io.IOException

getOverwriteAction

protected ZipStreamInflator.FileOverwriteAction getOverwriteAction(java.io.File fileOnDisk)
Determines how the file that already existed locally should be replaced.
Parameters:
fileOnDisk - local file
Returns:
the action to take

getZipEntryPath

protected java.lang.String getZipEntryPath(java.lang.String zipEntry)
Retrieve the zip entry path
Parameters:
zipEntry - the zip entry
Returns:
the relative path for the zip entry

Skip navigation links

Oracle® Fusion Middleware Site Studio for External Applications Java API Reference
11g Release 1 (11.1.1)

E17273-01


Copyright © 2010, Oracle and/or its affiliates. All rights reserved.