org.apache.maven.plugin.assembly.filter
Class AbstractLineAggregatingHandler

java.lang.Object
  extended by org.apache.maven.plugin.assembly.filter.AbstractLineAggregatingHandler
All Implemented Interfaces:
ContainerDescriptorHandler, ArchiveFinalizer, FileSelector
Direct Known Subclasses:
MetaInfServicesHandler, MetaInfSpringHandler

public abstract class AbstractLineAggregatingHandler
extends Object
implements ContainerDescriptorHandler


Field Summary
 
Fields inherited from interface org.codehaus.plexus.components.io.fileselectors.FileSelector
DEFAULT_ROLE_HINT, ROLE
 
Constructor Summary
AbstractLineAggregatingHandler()
           
 
Method Summary
protected  void addToArchive(Archiver archiver)
           
protected abstract  boolean fileMatches(FileInfo fileInfo)
           
 void finalizeArchiveCreation(Archiver archiver)
           
 void finalizeArchiveExtraction(UnArchiver unArchiver)
           
protected  Map<String,List<String>> getCatalog()
           
protected  String getEncoding()
           
protected abstract  String getOutputPathPrefix(FileInfo fileInfo)
           
 List<String> getVirtualFiles()
           
 boolean isSelected(FileInfo fileInfo)
           
protected  void readLines(FileInfo fileInfo, List<String> lines)
           
protected  void setCatalog(Map<String,List<String>> catalog)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractLineAggregatingHandler

public AbstractLineAggregatingHandler()
Method Detail

getOutputPathPrefix

protected abstract String getOutputPathPrefix(FileInfo fileInfo)

fileMatches

protected abstract boolean fileMatches(FileInfo fileInfo)

getEncoding

protected String getEncoding()

finalizeArchiveCreation

public void finalizeArchiveCreation(Archiver archiver)
                             throws ArchiverException
Specified by:
finalizeArchiveCreation in interface ArchiveFinalizer
Throws:
ArchiverException

addToArchive

protected void addToArchive(Archiver archiver)
                     throws ArchiverException
Throws:
ArchiverException

finalizeArchiveExtraction

public void finalizeArchiveExtraction(UnArchiver unArchiver)
                               throws ArchiverException
Specified by:
finalizeArchiveExtraction in interface ArchiveFinalizer
Throws:
ArchiverException

getVirtualFiles

public List<String> getVirtualFiles()
Specified by:
getVirtualFiles in interface ArchiveFinalizer

isSelected

public boolean isSelected(FileInfo fileInfo)
                   throws IOException
Specified by:
isSelected in interface FileSelector
Throws:
IOException

readLines

protected void readLines(FileInfo fileInfo,
                         List<String> lines)
                  throws IOException
Throws:
IOException

getCatalog

protected final Map<String,List<String>> getCatalog()

setCatalog

protected final void setCatalog(Map<String,List<String>> catalog)


Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.