com.myJava.file.archive
Interface ArchiveAdapter

All Known Implementing Classes:
AbstractArchiveAdapter, ZipArchiveAdapter

public interface ArchiveAdapter


Author:
Olivier PETRUCCI

Areca Build ID : 7299034069467778562

Field Summary
static short ACCESS_READ
           
static short ACCESS_UNDEF
           
static short ACCESS_WRITE
           
 
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.io.InputStream getArchiveInputStream()
          Returns the inputStream that can be used to read data
 java.io.OutputStream getArchiveOutputStream()
          Returns the outputStream that can be used to write data
 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
 

Field Detail

ACCESS_UNDEF

static final short ACCESS_UNDEF
See Also:
Constant Field Values

ACCESS_WRITE

static final short ACCESS_WRITE
See Also:
Constant Field Values

ACCESS_READ

static final short ACCESS_READ
See Also:
Constant Field Values
Method Detail

close

void close()
           throws java.io.IOException
Closes the archive

Throws:
java.io.IOException

addEntry

void addEntry(java.lang.String entryName,
              long size)
              throws java.io.IOException
Adds a new Entry

Throws:
java.io.IOException

getArchiveOutputStream

java.io.OutputStream getArchiveOutputStream()
Returns the outputStream that can be used to write data


getArchiveInputStream

java.io.InputStream getArchiveInputStream()
Returns the inputStream that can be used to read data


getNextEntry

java.lang.String getNextEntry()
                              throws java.io.IOException
Iterates on the InputStream and returns the next entry.

Throws:
java.io.IOException

closeEntry

void closeEntry()
                throws java.io.IOException
Closes the current entry

Throws:
java.io.IOException

setArchiveComment

void setArchiveComment(java.lang.String comment)
Sets the archive comment


setCharset

void setCharset(java.nio.charset.Charset charset)
Sets the charset used to encode filenames