java.util.zip.ZipOutputStream.writeLong()方法的使用及代码示例

x33g5p2x  于2022-02-05 转载在 其他  
字(7.6k)|赞(0)|评价(0)|浏览(126)

本文整理了Java中java.util.zip.ZipOutputStream.writeLong()方法的一些代码示例,展示了ZipOutputStream.writeLong()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZipOutputStream.writeLong()方法的具体详情如下:
包路径:java.util.zip.ZipOutputStream
类名称:ZipOutputStream
方法名:writeLong

ZipOutputStream.writeLong介绍

暂无

代码示例

代码示例来源:origin: robovm/robovm

writeLong(cDir, ENDSIG);
writeShort(cDir, 0); // Disk Number
writeShort(cDir, 0); // Start Disk
writeLong(cDir, cdirSize); // Size of central dir
writeLong(cDir, offset); // Offset of central dir
writeShort(cDir, commentBytes.length);
if (commentBytes.length > 0) {

代码示例来源:origin: robovm/robovm

writeLong(out, EXTSIG);
  writeLong(out, currentEntry.crc = crc.getValue());
  writeLong(out, currentEntry.compressedSize = def.getTotalOut());
  writeLong(out, currentEntry.size = def.getTotalIn());
writeLong(cDir, CENSIG);
writeShort(cDir, currentEntry.time);
writeShort(cDir, currentEntry.modDate);
writeLong(cDir, crc.getValue());
if (currentEntry.getMethod() == DEFLATED) {
  curOffset += writeLong(cDir, def.getTotalOut());
  writeLong(cDir, def.getTotalIn());
} else {
  curOffset += writeLong(cDir, crc.tbytes);
  writeLong(cDir, crc.tbytes);
writeLong(cDir, 0); // External File Attributes
writeLong(cDir, offset);
cDir.write(nameBytes);
nameBytes = null;

代码示例来源:origin: robovm/robovm

writeLong(out, LOCSIG); // Entry header
  writeLong(out, currentEntry.crc);
  writeLong(out, currentEntry.size);
  writeLong(out, currentEntry.size);
} else {
  writeLong(out, 0);
  writeLong(out, 0);
  writeLong(out, 0);

代码示例来源:origin: MobiVM/robovm

writeLong(cDir, ENDSIG);
writeShort(cDir, 0); // Disk Number
writeShort(cDir, 0); // Start Disk
writeLong(cDir, cdirSize); // Size of central dir
writeLong(cDir, offset); // Offset of central dir
writeShort(cDir, commentBytes.length);
if (commentBytes.length > 0) {

代码示例来源:origin: com.gluonhq/robovm-rt

writeLong(cDir, ENDSIG);
writeShort(cDir, 0); // Disk Number
writeShort(cDir, 0); // Start Disk
writeLong(cDir, cdirSize); // Size of central dir
writeLong(cDir, offset); // Offset of central dir
writeShort(cDir, commentBytes.length);
if (commentBytes.length > 0) {

代码示例来源:origin: ibinti/bugvm

writeLong(cDir, ENDSIG);
writeShort(cDir, 0); // Disk Number
writeShort(cDir, 0); // Start Disk
writeLong(cDir, cdirSize); // Size of central dir
writeLong(cDir, offset); // Offset of central dir
writeShort(cDir, commentBytes.length);
if (commentBytes.length > 0) {

代码示例来源:origin: com.jtransc/jtransc-rt

writeLong(cDir, ENDSIG);
writeShort(cDir, 0); // Disk Number
writeShort(cDir, 0); // Start Disk
writeLong(cDir, cdirSize); // Size of central dir
writeLong(cDir, offset); // Offset of central dir
writeShort(cDir, commentBytes.length);
if (commentBytes.length > 0) {

代码示例来源:origin: com.bugvm/bugvm-rt

writeLong(cDir, ENDSIG);
writeShort(cDir, 0); // Disk Number
writeShort(cDir, 0); // Start Disk
writeLong(cDir, cdirSize); // Size of central dir
writeLong(cDir, offset); // Offset of central dir
writeShort(cDir, commentBytes.length);
if (commentBytes.length > 0) {

代码示例来源:origin: com.mobidevelop.robovm/robovm-rt

writeLong(cDir, ENDSIG);
writeShort(cDir, 0); // Disk Number
writeShort(cDir, 0); // Start Disk
writeLong(cDir, cdirSize); // Size of central dir
writeLong(cDir, offset); // Offset of central dir
writeShort(cDir, commentBytes.length);
if (commentBytes.length > 0) {

代码示例来源:origin: FlexoVM/flexovm

writeLong(cDir, ENDSIG);
writeShort(cDir, 0); // Disk Number
writeShort(cDir, 0); // Start Disk
writeLong(cDir, cdirSize); // Size of central dir
writeLong(cDir, offset); // Offset of central dir
writeShort(cDir, commentBytes.length);
if (commentBytes.length > 0) {

代码示例来源:origin: MobiVM/robovm

writeLong(out, EXTSIG);
  writeLong(out, currentEntry.crc = crc.getValue());
  writeLong(out, currentEntry.compressedSize = def.getTotalOut());
  writeLong(out, currentEntry.size = def.getTotalIn());
writeLong(cDir, CENSIG);
writeShort(cDir, currentEntry.time);
writeShort(cDir, currentEntry.modDate);
writeLong(cDir, crc.getValue());
if (currentEntry.getMethod() == DEFLATED) {
  curOffset += writeLong(cDir, def.getTotalOut());
  writeLong(cDir, def.getTotalIn());
} else {
  curOffset += writeLong(cDir, crc.tbytes);
  writeLong(cDir, crc.tbytes);
writeLong(cDir, 0); // External File Attributes
writeLong(cDir, offset);
cDir.write(nameBytes);
nameBytes = null;

代码示例来源:origin: ibinti/bugvm

writeLong(out, EXTSIG);
  writeLong(out, currentEntry.crc = crc.getValue());
  writeLong(out, currentEntry.compressedSize = def.getTotalOut());
  writeLong(out, currentEntry.size = def.getTotalIn());
writeLong(cDir, CENSIG);
writeShort(cDir, currentEntry.time);
writeShort(cDir, currentEntry.modDate);
writeLong(cDir, crc.getValue());
if (currentEntry.getMethod() == DEFLATED) {
  curOffset += writeLong(cDir, def.getTotalOut());
  writeLong(cDir, def.getTotalIn());
} else {
  curOffset += writeLong(cDir, crc.tbytes);
  writeLong(cDir, crc.tbytes);
writeLong(cDir, 0); // External File Attributes
writeLong(cDir, offset);
cDir.write(nameBytes);
nameBytes = null;

代码示例来源:origin: com.bugvm/bugvm-rt

writeLong(out, EXTSIG);
  writeLong(out, currentEntry.crc = crc.getValue());
  writeLong(out, currentEntry.compressedSize = def.getTotalOut());
  writeLong(out, currentEntry.size = def.getTotalIn());
writeLong(cDir, CENSIG);
writeShort(cDir, currentEntry.time);
writeShort(cDir, currentEntry.modDate);
writeLong(cDir, crc.getValue());
if (currentEntry.getMethod() == DEFLATED) {
  curOffset += writeLong(cDir, def.getTotalOut());
  writeLong(cDir, def.getTotalIn());
} else {
  curOffset += writeLong(cDir, crc.tbytes);
  writeLong(cDir, crc.tbytes);
writeLong(cDir, 0); // External File Attributes
writeLong(cDir, offset);
cDir.write(nameBytes);
nameBytes = null;

代码示例来源:origin: com.gluonhq/robovm-rt

writeLong(out, EXTSIG);
  writeLong(out, currentEntry.crc = crc.getValue());
  writeLong(out, currentEntry.compressedSize = def.getTotalOut());
  writeLong(out, currentEntry.size = def.getTotalIn());
writeLong(cDir, CENSIG);
writeShort(cDir, currentEntry.time);
writeShort(cDir, currentEntry.modDate);
writeLong(cDir, crc.getValue());
if (currentEntry.getMethod() == DEFLATED) {
  curOffset += writeLong(cDir, def.getTotalOut());
  writeLong(cDir, def.getTotalIn());
} else {
  curOffset += writeLong(cDir, crc.tbytes);
  writeLong(cDir, crc.tbytes);
writeLong(cDir, 0); // External File Attributes
writeLong(cDir, offset);
cDir.write(nameBytes);
nameBytes = null;

代码示例来源:origin: com.mobidevelop.robovm/robovm-rt

writeLong(out, EXTSIG);
  writeLong(out, currentEntry.crc = crc.getValue());
  writeLong(out, currentEntry.compressedSize = def.getTotalOut());
  writeLong(out, currentEntry.size = def.getTotalIn());
writeLong(cDir, CENSIG);
writeShort(cDir, currentEntry.time);
writeShort(cDir, currentEntry.modDate);
writeLong(cDir, crc.getValue());
if (currentEntry.getMethod() == DEFLATED) {
  curOffset += writeLong(cDir, def.getTotalOut());
  writeLong(cDir, def.getTotalIn());
} else {
  curOffset += writeLong(cDir, crc.tbytes);
  writeLong(cDir, crc.tbytes);
writeLong(cDir, 0); // External File Attributes
writeLong(cDir, offset);
cDir.write(nameBytes);
nameBytes = null;

代码示例来源:origin: ibinti/bugvm

writeLong(out, LOCSIG); // Entry header
  writeLong(out, currentEntry.crc);
  writeLong(out, currentEntry.size);
  writeLong(out, currentEntry.size);
} else {
  writeLong(out, 0);
  writeLong(out, 0);
  writeLong(out, 0);

代码示例来源:origin: MobiVM/robovm

writeLong(out, LOCSIG); // Entry header
  writeLong(out, currentEntry.crc);
  writeLong(out, currentEntry.size);
  writeLong(out, currentEntry.size);
} else {
  writeLong(out, 0);
  writeLong(out, 0);
  writeLong(out, 0);

代码示例来源:origin: com.bugvm/bugvm-rt

writeLong(out, LOCSIG); // Entry header
  writeLong(out, currentEntry.crc);
  writeLong(out, currentEntry.size);
  writeLong(out, currentEntry.size);
} else {
  writeLong(out, 0);
  writeLong(out, 0);
  writeLong(out, 0);

代码示例来源:origin: com.gluonhq/robovm-rt

writeLong(out, LOCSIG); // Entry header
  writeLong(out, currentEntry.crc);
  writeLong(out, currentEntry.size);
  writeLong(out, currentEntry.size);
} else {
  writeLong(out, 0);
  writeLong(out, 0);
  writeLong(out, 0);

代码示例来源:origin: com.jtransc/jtransc-rt

writeLong(out, LOCSIG); // Entry header
  writeLong(out, currentEntry.crc);
  writeLong(out, currentEntry.size);
  writeLong(out, currentEntry.size);
} else {
  writeLong(out, 0);
  writeLong(out, 0);
  writeLong(out, 0);

相关文章