ZipUpdater (Hyperic HQ Plugin API)
Keywords: org.hyperic.util.file.ZipUpdater class

Overview | Package | Class | Tree | Deprecated | Index | Help
| Hyperic HQ Plugin API v. 4.4.0.2
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.hyperic.util.file
Class ZipUpdater

    java.lang.Object
      org.hyperic.util.file.ArchiveUpdater
          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)`

Overview | Package | Class | Tree | Deprecated | Index | Help
| Hyperic HQ Plugin API v. 4.4.0.2
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

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