Package proguard.io

Class DataEntryCopier

    • Method Summary

      All Methods Static 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.
      static void main​(java.lang.String[] args)
      A main method for testing file/archive/directory copying.
      void read​(DataEntry dataEntry)
      Reads the given data entry.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DataEntryCopier

        public DataEntryCopier​(DataEntryWriter dataEntryWriter)
        Creates a new DataEntryCopier.
    • Method Detail

      • read

        public void read​(DataEntry dataEntry)
                  throws java.io.IOException
        Description copied from interface: DataEntryReader
        Reads the given data entry.
        Specified by:
        read in interface DataEntryReader
        Throws:
        java.io.IOException
      • copyData

        protected void copyData​(java.io.InputStream inputStream,
                                java.io.OutputStream outputStream)
                         throws java.io.IOException
        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.
        Throws:
        java.io.IOException
      • main

        public static void main​(java.lang.String[] args)
        A main method for testing file/archive/directory copying.