com.atlassian.studio.jira.importer.impl.archive
Class CompressedFileServiceImpl

java.lang.Object
  extended by com.atlassian.studio.jira.importer.impl.archive.CompressedFileServiceImpl
All Implemented Interfaces:
CompressedFileService

public class CompressedFileServiceImpl
extends Object
implements CompressedFileService

This uses magic number signatures in the compressed files to work out what sort of compression has been used to compress the files.


Constructor Summary
CompressedFileServiceImpl()
           
 
Method Summary
 ArchiveExtractor getArchiveExtractor(File archive)
          Gets an archive extractor Supported file types are zip, tar gzip, and tar bzip2.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompressedFileServiceImpl

public CompressedFileServiceImpl()
Method Detail

getArchiveExtractor

public ArchiveExtractor getArchiveExtractor(File archive)
                                     throws IOException
Description copied from interface: CompressedFileService
Gets an archive extractor Supported file types are zip, tar gzip, and tar bzip2.

Specified by:
getArchiveExtractor in interface CompressedFileService
Parameters:
archive - The archive to extract
Returns:
The archive extractor
Throws:
IOException - If an error occurs


Copyright © 2002-2012 Atlassian. All Rights Reserved.