Hyperic HQ Plugin API v. 4.4.0.2

org.hyperic.util.file
Class ZipUpdater

java.lang.Object
  extended by org.hyperic.util.file.ArchiveUpdater
      extended by org.hyperic.util.file.ZipUpdater

public class ZipUpdater
extends ArchiveUpdater

Update a zipfile with an updated file.


Field Summary
 
Fields inherited from class org.hyperic.util.file.ArchiveUpdater
tgzUpdater, zipUpdater
 
Constructor Summary
ZipUpdater()
           
 
Method Summary
 void update(java.io.File zip, java.io.File out, java.lang.String pathToReplace, java.io.InputStream replacement, long rsize)
          Same as the other update method, but this accepts an InputStream as the replacement file instead of a File object.
 
Methods inherited from class org.hyperic.util.file.ArchiveUpdater
doClose, doClose, getDestFile, getUpdater, main, matches, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ZipUpdater

public ZipUpdater()
Method Detail

update

public void update(java.io.File zip,
                   java.io.File out,
                   java.lang.String pathToReplace,
                   java.io.InputStream replacement,
                   long rsize)
            throws java.io.IOException
Description copied from class: ArchiveUpdater
Same as the other update method, but this accepts an InputStream as the replacement file instead of a File object.

Specified by:
update in class ArchiveUpdater
rsize - The size of the replacement stream, in bytes.
Throws:
java.io.IOException
See Also:
ArchiveUpdater.update(java.io.File, java.io.File, java.lang.String, java.io.File)

Hyperic HQ Plugin API v. 4.4.0.2

Copyright © 2004-2006 Hyperic, Inc. support@hyperic.net, All Rights Reserved.