TrueUpdate Core 0.4

net.java.trueupdate.core.zip.io
Class ZipFileStore

java.lang.Object
  extended by net.java.trueupdate.core.zip.io.ZipFileStore
All Implemented Interfaces:
ZipSink, ZipSource, ZipStore
Direct Known Subclasses:
JarFileStore

public class ZipFileStore
extends Object
implements ZipStore

A file based ZIP store.

Author:
Christian Schlichtherle

Constructor Summary
ZipFileStore(File file)
           
 
Method Summary
 void delete()
          Deletes the ZIP data.
 boolean exists()
          Returns true if and only if the ZIP data exists.
 ZipInput input()
          Returns a new ZIP input for reading its entries.
 ZipOutput output()
          Returns a new ZIP output for writing its entries.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ZipFileStore

public ZipFileStore(File file)
Method Detail

delete

public void delete()
            throws IOException
Description copied from interface: ZipStore
Deletes the ZIP data.

Specified by:
delete in interface ZipStore
Throws:
IOException

exists

public boolean exists()
Description copied from interface: ZipStore
Returns true if and only if the ZIP data exists.

Specified by:
exists in interface ZipStore

input

public ZipInput input()
               throws IOException
Description copied from interface: ZipSource
Returns a new ZIP input for reading its entries.

Specified by:
input in interface ZipSource
Throws:
IOException

output

public ZipOutput output()
                 throws IOException
Description copied from interface: ZipSink
Returns a new ZIP output for writing its entries.

Specified by:
output in interface ZipSink
Throws:
IOException

TrueUpdate Core 0.4

Copyright © 2013 Schlichtherle IT Services. All rights reserved.