Package proguard.io
Class ZipOutput.LargeDataOutputStream
- java.lang.Object
-
- java.io.OutputStream
-
- java.io.FilterOutputStream
-
- java.io.DataOutputStream
-
- proguard.io.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.
-
-
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)
-
-
-
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 interfacejava.io.DataOutput
- Overrides:
write
in classjava.io.DataOutputStream
- Throws:
java.io.IOException
-
write
public void write(byte[] b) throws java.io.IOException
- Specified by:
write
in interfacejava.io.DataOutput
- Overrides:
write
in classjava.io.FilterOutputStream
- Throws:
java.io.IOException
-
-