proguard.io
Class DataEntryRewriter

java.lang.Object
  extended by proguard.io.DataEntryCopier
      extended by proguard.io.DataEntryRewriter
All Implemented Interfaces:
DataEntryReader
Direct Known Subclasses:
ManifestRewriter

public class DataEntryRewriter
extends DataEntryCopier

This DataEntryReader writes the resource data entries that it reads to a given DataEntryWriter, updating their contents based on the renamed classes in the given ClassPool.


Constructor Summary
DataEntryRewriter(ClassPool classPool, DataEntryWriter dataEntryWriter)
          Creates a new DataEntryRewriter.
 
Method Summary
protected  void copyData(java.io.InputStream inputStream, java.io.OutputStream outputStream)
          Copies all data that it can read from the given input stream to the given output stream.
protected  void copyData(java.io.Reader reader, java.io.Writer writer)
          Copies all data that it can read from the given reader to the given writer.
 
Methods inherited from class proguard.io.DataEntryCopier
main, read
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataEntryRewriter

public DataEntryRewriter(ClassPool classPool,
                         DataEntryWriter dataEntryWriter)
Creates a new DataEntryRewriter.

Method Detail

copyData

protected void copyData(java.io.InputStream inputStream,
                        java.io.OutputStream outputStream)
                 throws java.io.IOException
Description copied from class: DataEntryCopier
Copies all data that it can read from the given input stream to the given output stream.

Overrides:
copyData in class DataEntryCopier
Throws:
java.io.IOException

copyData

protected void copyData(java.io.Reader reader,
                        java.io.Writer writer)
                 throws java.io.IOException
Copies all data that it can read from the given reader to the given writer.

Throws:
java.io.IOException