Package proguard.io
Class DataEntryRewriter
java.lang.Object
proguard.io.DataEntryCopier
proguard.io.DataEntryRewriter
- All Implemented Interfaces:
DataEntryReader
- Direct Known Subclasses:
ManifestRewriter
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
ConstructorsConstructorDescriptionDataEntryRewriter(ClassPool classPool, Charset charset, DataEntryWriter dataEntryWriter) Creates a new DataEntryRewriter. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcopyData(InputStream inputStream, OutputStream outputStream) Copies all data that it can read from the given input stream to the given output stream.protected voidCopies all data that it can read from the given reader to the given writer.Methods inherited from class proguard.io.DataEntryCopier
main, read
-
Constructor Details
-
DataEntryRewriter
Creates a new DataEntryRewriter.
-
-
Method Details
-
copyData
Description copied from class:DataEntryCopierCopies 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:
copyDatain classDataEntryCopier- Throws:
IOException
-
copyData
Copies all data that it can read from the given reader to the given writer.- Throws:
IOException
-