Tabnine Logo
LEDataOutputStream.size
Code IndexAdd Tabnine to your IDE (free)

How to use
size
method
in
de.schlichtherle.truezip.io.LEDataOutputStream

Best Java code snippets using de.schlichtherle.truezip.io.LEDataOutputStream.size (Showing top 5 results out of 315)

origin: de.schlichtherle.truezip/truezip-driver-zip

/**
 * Returns the total number of (compressed) bytes this stream has written
 * to the underlying stream.
 */
public long length() {
  return this.dos.size();
}
origin: de.schlichtherle.truezip/truezip-driver-zip

closeEntry();
final LEDataOutputStream dos = this.dos;
this.cdOffset = dos.size();
final Iterator<E> i = this.entries.values().iterator();
while (i.hasNext())
origin: de.schlichtherle.truezip/truezip-driver-tzp

  @Override
  protected void finish() throws IOException {
    // Flush partial block to out, if any.
    super.finish();

    final long trailer = dos.size();

    final Mac mac = this.mac;
    assert mac.getMacSize() == klac.getMacSize();
    final byte[] buf = new byte[mac.getMacSize()]; // MAC buffer
    int bufLength;

    // Compute and write the first half of the KLAC to the data envelope footer.
    // Please note that we will only use the first half of the
    // authentication code for security reasons.
    final long length = trailer - start; // message length
    klac(klac, length, buf);
    dos.write(buf, 0, buf.length / 2);

    // Compute and write the first half of the MAC to the data envelope footer.
    // Again, we will only use the first half of the
    // authentication code for security reasons.
    bufLength = mac.doFinal(buf, 0);
    assert bufLength == buf.length;
    dos.write(buf, 0, buf.length / 2);

    assert dos.size() - trailer == buf.length;
  }
}
origin: de.schlichtherle.truezip/truezip-driver-zip

final long cdEntries = entries.size();
final long cdOffset = this.cdOffset;
final long cdSize = dos.size() - cdOffset;
final boolean cdEntriesZip64 = cdEntries > UShort.MAX_VALUE || FORCE_ZIP64_EXT;
final boolean cdSizeZip64    = cdSize    > UInt  .MAX_VALUE || FORCE_ZIP64_EXT;
if (zip64) {
  final long zip64eocdOffset // relative offset of the zip64 end of central directory record
      = dos.size();
origin: de.schlichtherle.truezip/truezip-driver-tzp

this.start = dos.size();
assert ENVELOPE_TYPE_0_HEADER_LEN_WO_SALT + salt.length == start;
de.schlichtherle.truezip.ioLEDataOutputStreamsize

Popular methods of LEDataOutputStream

  • <init>
  • write
  • writeInt
  • writeShort
  • writeByte
  • writeLong

Popular in Java

  • Running tasks concurrently on multiple threads
  • getSharedPreferences (Context)
  • notifyDataSetChanged (ArrayAdapter)
  • onCreateOptionsMenu (Activity)
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • PriorityQueue (java.util)
    A PriorityQueue holds elements on a priority heap, which orders the elements according to their natu
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now