com.myJava.file.archive.zip64
Class ZipArchiveAdapter

java.lang.Object
  extended by com.myJava.file.archive.AbstractArchiveAdapter
      extended by com.myJava.file.archive.zip64.ZipArchiveAdapter
All Implemented Interfaces:
ArchiveAdapter

public class ZipArchiveAdapter
extends AbstractArchiveAdapter
implements ArchiveAdapter


Author:
Olivier PETRUCCI

Areca Build ID : 7299034069467778562

Field Summary
 
Fields inherited from class com.myJava.file.archive.AbstractArchiveAdapter
accessMode, entryCount, zin, zout
 
Fields inherited from interface com.myJava.file.archive.ArchiveAdapter
ACCESS_READ, ACCESS_UNDEF, ACCESS_WRITE
 
Constructor Summary
ZipArchiveAdapter(java.io.InputStream in)
           
ZipArchiveAdapter(java.io.InputStream in, long streamSize)
           
ZipArchiveAdapter(java.io.OutputStream out, boolean useZip64, int level)
           
ZipArchiveAdapter(VolumeStrategy strategy)
           
ZipArchiveAdapter(VolumeStrategy strategy, long streamSize)
           
ZipArchiveAdapter(VolumeStrategy strategy, long volumeSize, boolean useZip64, int level)
           
 
Method Summary
 void addEntry(java.lang.String entryName, long size)
          Adds a new Entry
 void close()
          Closes the archive
 void closeEntry()
          Closes the current entry
 java.lang.String getNextEntry()
          Iterates on the InputStream and returns the next entry.
 void setArchiveComment(java.lang.String comment)
          Sets the archive comment
 void setCharset(java.nio.charset.Charset charset)
          Sets the charset used to encode filenames
 
Methods inherited from class com.myJava.file.archive.AbstractArchiveAdapter
getArchiveInputStream, getArchiveOutputStream, isReader, isWriter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.myJava.file.archive.ArchiveAdapter
getArchiveInputStream, getArchiveOutputStream
 

Constructor Detail

ZipArchiveAdapter

public ZipArchiveAdapter(java.io.InputStream in)

ZipArchiveAdapter

public ZipArchiveAdapter(java.io.InputStream in,
                         long streamSize)

ZipArchiveAdapter

public ZipArchiveAdapter(VolumeStrategy strategy)

ZipArchiveAdapter

public ZipArchiveAdapter(VolumeStrategy strategy,
                         long streamSize)

ZipArchiveAdapter

public ZipArchiveAdapter(java.io.OutputStream out,
                         boolean useZip64,
                         int level)

ZipArchiveAdapter

public ZipArchiveAdapter(VolumeStrategy strategy,
                         long volumeSize,
                         boolean useZip64,
                         int level)
Method Detail

addEntry

public void addEntry(java.lang.String entryName,
                     long size)
              throws java.io.IOException
Description copied from interface: ArchiveAdapter
Adds a new Entry

Specified by:
addEntry in interface ArchiveAdapter
Overrides:
addEntry in class AbstractArchiveAdapter
Throws:
java.io.IOException

close

public void close()
           throws java.io.IOException
Description copied from interface: ArchiveAdapter
Closes the archive

Specified by:
close in interface ArchiveAdapter
Overrides:
close in class AbstractArchiveAdapter
Throws:
java.io.IOException

setCharset

public void setCharset(java.nio.charset.Charset charset)
Description copied from interface: ArchiveAdapter
Sets the charset used to encode filenames

Specified by:
setCharset in interface ArchiveAdapter

setArchiveComment

public void setArchiveComment(java.lang.String comment)
Description copied from interface: ArchiveAdapter
Sets the archive comment

Specified by:
setArchiveComment in interface ArchiveAdapter

closeEntry

public void closeEntry()
                throws java.io.IOException
Description copied from interface: ArchiveAdapter
Closes the current entry

Specified by:
closeEntry in interface ArchiveAdapter
Throws:
java.io.IOException

getNextEntry

public java.lang.String getNextEntry()
                              throws java.io.IOException
Description copied from interface: ArchiveAdapter
Iterates on the InputStream and returns the next entry.

Specified by:
getNextEntry in interface ArchiveAdapter
Throws:
java.io.IOException