Package proguard.io

Class DataEntryRewriter

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method 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.
      • 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,
                                 java.nio.charset.Charset charset,
                                 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. 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:
        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