Package proguard.io

Class ZipOutput.LargeDataOutputStream

  • All Implemented Interfaces:
    java.io.Closeable, java.io.DataOutput, java.io.Flushable, java.lang.AutoCloseable
    Enclosing class:
    ZipOutput

    public static class ZipOutput.LargeDataOutputStream
    extends java.io.DataOutputStream
    This output stream is mostly identical to DataOutputStream, except it stores the amount of bytes written so far in a long instead of an int. This makes sure the count is correct, even when writing out more than 1 << 31 bytes.
    • Field Summary

      • Fields inherited from class java.io.FilterOutputStream

        out
    • Constructor Summary

      Constructors 
      Constructor Description
      LargeDataOutputStream​(java.io.OutputStream out)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      long getLongSize()  
      void write​(byte[] b)  
      void write​(int b)  
      • Methods inherited from class java.io.DataOutputStream

        flush, size, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTF
      • Methods inherited from class java.io.FilterOutputStream

        close
      • Methods inherited from class java.io.OutputStream

        nullOutputStream
      • Methods inherited from class java.lang.Object

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

      • LargeDataOutputStream

        public LargeDataOutputStream​(java.io.OutputStream out)
    • Method Detail

      • getLongSize

        public long getLongSize()
        Returns:
        the amount of bytes written to the output stream so far.
      • write

        public void write​(int b)
                   throws java.io.IOException
        Specified by:
        write in interface java.io.DataOutput
        Overrides:
        write in class java.io.DataOutputStream
        Throws:
        java.io.IOException
      • write

        public void write​(byte[] b)
                   throws java.io.IOException
        Specified by:
        write in interface java.io.DataOutput
        Overrides:
        write in class java.io.FilterOutputStream
        Throws:
        java.io.IOException