public interface Compactor
| Modifier and Type | Method and Description |
|---|---|
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
|
String[] getSourceExtensions()
String getTargetExtension(BuildManager manager, String path)
void calcHash(BuildManager manager, MessageDigest hash, String path, File source) throws IOException, NoSuchAlgorithmException
manager - hash - path - source - IOExceptionNoSuchAlgorithmExceptionvoid compact(BuildManager manager, String path, File source, File target) throws IOException
manager - path - URL pathsource - input filetarget - output fileIOExceptionCopyright © 2014. All rights reserved.