Package proguard.io

Class DataEntryRewriter

java.lang.Object
proguard.io.DataEntryCopier
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 Details

  • Method Details

    • copyData

      protected void copyData(InputStream inputStream, OutputStream outputStream) throws IOException
      Description copied from class: DataEntryCopier
      Copies all data that it can read from the given input stream to the given output stream. The caller of this method will open and afterwards flush and close the input stream and the output stream. The implementation of this method needs to make sure that any wrapping output streams are flushed before returning.
      Overrides:
      copyData in class DataEntryCopier
      Throws:
      IOException
    • copyData

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