org.duelengine.merge
Interface Compactor


public interface Compactor


Method Summary
 void calcHash(BuildManager manager, MessageDigest hash, String path, File source)
          Generate SHA-1 hash for the specified file
 void compact(BuildManager manager, String path, File source, File target)
          Perform compaction
 String[] getSourceExtensions()
          Gets the extension which this compaction consumes
 String getTargetExtension(BuildManager manager, String path)
          Gets the extension which this compaction emits
 

Method Detail

getSourceExtensions

String[] getSourceExtensions()
Gets the extension which this compaction consumes

Returns:

getTargetExtension

String getTargetExtension(BuildManager manager,
                          String path)
Gets the extension which this compaction emits

Returns:

calcHash

void calcHash(BuildManager manager,
              MessageDigest hash,
              String path,
              File source)
              throws IOException,
                     NoSuchAlgorithmException
Generate SHA-1 hash for the specified file

Parameters:
manager -
hash -
path -
source -
Throws:
IOException
NoSuchAlgorithmException

compact

void compact(BuildManager manager,
             String path,
             File source,
             File target)
             throws IOException
Perform compaction

Parameters:
manager -
path - URL path
source - input file
target - output file
Throws:
IOException


Copyright © 2012. All Rights Reserved.