com.tonicsystems.jarjar.resource
Class ResourceRewriter

java.lang.Object
  extended by com.tonicsystems.jarjar.resource.ResourceRewriter
All Implemented Interfaces:
JarProcessor

public class ResourceRewriter
extends java.lang.Object
implements JarProcessor

by Szczepan Faber, created at: 9/11/12


Constructor Summary
ResourceRewriter(LineRewriter input, boolean verbose)
           
 
Method Summary
 boolean process(EntryStruct struct)
          Process the entry (p.ex.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceRewriter

public ResourceRewriter(LineRewriter input,
                        boolean verbose)
Method Detail

process

public boolean process(EntryStruct struct)
                throws java.io.IOException
Description copied from interface: JarProcessor
Process the entry (p.ex. rename the file)

Returns true if the processor has has changed the entry. In this case, the entry can be removed from the jar file in a future time. Return false for the entries which do not have been changed and there fore are not to be deleted

Specified by:
process in interface JarProcessor
Returns:
true if he process chain can continue after this process
Throws:
java.io.IOException