public class DataEntryRewriter extends DataEntryCopier
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 and Description |
|---|
DataEntryRewriter(ClassPool classPool,
java.nio.charset.Charset charset,
DataEntryWriter dataEntryWriter)
Creates a new DataEntryRewriter.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
main, readpublic DataEntryRewriter(ClassPool classPool, java.nio.charset.Charset charset, DataEntryWriter dataEntryWriter)
protected void copyData(java.io.InputStream inputStream,
java.io.OutputStream outputStream)
throws java.io.IOException
DataEntryCopiercopyData in class DataEntryCopierjava.io.IOExceptionprotected void copyData(java.io.Reader reader,
java.io.Writer writer)
throws java.io.IOException
java.io.IOException