本文整理了Java中org.apache.commons.compress.archivers.zip.ZipUtil.copy()
方法的一些代码示例,展示了ZipUtil.copy()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZipUtil.copy()
方法的具体详情如下:
包路径:org.apache.commons.compress.archivers.zip.ZipUtil
类名称:ZipUtil
方法名:copy
[英]Create a copy of the given array - or return null if the argument is null.
[中]创建给定数组的副本——如果参数为null,则返回null。
代码示例来源:origin: org.apache.commons/commons-compress
/**
* The actual data to put into local file data.
*
* @return The LocalFileDataData value
*/
@Override
public byte[] getLocalFileDataData() {
return ZipUtil.copy(localFileData);
}
代码示例来源:origin: org.apache.commons/commons-compress
/**
* Set the extra field data in the local file data - without Header-ID or
* length specifier.
*
* @param data
* the field data to use
*/
public void setLocalFileDataData(final byte[] data) {
localData = ZipUtil.copy(data);
}
代码示例来源:origin: org.apache.commons/commons-compress
/**
* Get the local data.
*
* @return the local data
*/
@Override
public byte[] getLocalFileDataData() {
return ZipUtil.copy(localData);
}
代码示例来源:origin: org.apache.commons/commons-compress
/**
* Set the extra field data in central directory.
* @param data the data to use
*/
public void setCentralDirectoryData(final byte[] data) {
centralData = ZipUtil.copy(data);
}
代码示例来源:origin: org.apache.commons/commons-compress
/**
* Set the extra field data in central directory.
*
* @param data
* the data to use
*/
public void setCentralDirectoryData(final byte[] data) {
centralData = ZipUtil.copy(data);
}
代码示例来源:origin: org.apache.commons/commons-compress
/**
* Set the extra field data in the local file data -
* without Header-ID or length specifier.
* @param data the field data to use
*/
public void setLocalFileDataData(final byte[] data) {
localData = ZipUtil.copy(data);
}
代码示例来源:origin: org.apache.commons/commons-compress
/**
* Get the local data.
* @return the local data
*/
@Override
public byte[] getLocalFileDataData() {
return ZipUtil.copy(localData);
}
代码示例来源:origin: org.apache.commons/commons-compress
/**
* Get the central data.
* @return the central data if present, else return the local file data
*/
@Override
public byte[] getCentralDirectoryData() {
if (centralData != null) {
return ZipUtil.copy(centralData);
}
return getLocalFileDataData();
}
代码示例来源:origin: org.apache.commons/commons-compress
/**
* The actual data to put into central directory.
*
* @return The CentralDirectoryData value
*/
@Override
public byte[] getCentralDirectoryData() {
return centralDirectoryData == null
? getLocalFileDataData() : ZipUtil.copy(centralDirectoryData);
}
代码示例来源:origin: org.apache.commons/commons-compress
/**
* Get the central data.
*
* @return the central data if present, else return the local file data
*/
@Override
public byte[] getCentralDirectoryData() {
if (centralData != null) {
return ZipUtil.copy(centralData);
}
return getLocalFileDataData();
}
代码示例来源:origin: com.impetus.fabric/fabric-jdbc-driver-shaded
/**
* Set the extra field data in central directory.
* @param data the data to use
*/
public void setCentralDirectoryData(final byte[] data) {
centralData = ZipUtil.copy(data);
}
代码示例来源:origin: com.impetus.fabric/fabric-jdbc-driver-shaded
/**
* Set the extra field data in the local file data - without Header-ID or
* length specifier.
*
* @param data
* the field data to use
*/
public void setLocalFileDataData(final byte[] data) {
localData = ZipUtil.copy(data);
}
代码示例来源:origin: com.impetus.fabric/fabric-jdbc-driver-shaded
/**
* Set the extra field data in central directory.
*
* @param data
* the data to use
*/
public void setCentralDirectoryData(final byte[] data) {
centralData = ZipUtil.copy(data);
}
代码示例来源:origin: com.impetus.fabric/fabric-jdbc-driver-shaded
/**
* Get the local data.
* @return the local data
*/
@Override
public byte[] getLocalFileDataData() {
return ZipUtil.copy(localData);
}
代码示例来源:origin: com.impetus.fabric/fabric-jdbc-driver-shaded
/**
* Set the extra field data in the local file data -
* without Header-ID or length specifier.
* @param data the field data to use
*/
public void setLocalFileDataData(final byte[] data) {
localData = ZipUtil.copy(data);
}
代码示例来源:origin: com.impetus.fabric/fabric-jdbc-driver-shaded
/**
* The actual data to put into local file data.
*
* @return The LocalFileDataData value
*/
@Override
public byte[] getLocalFileDataData() {
return ZipUtil.copy(localFileData);
}
代码示例来源:origin: com.impetus.fabric/fabric-jdbc-driver-shaded
/**
* Get the local data.
*
* @return the local data
*/
@Override
public byte[] getLocalFileDataData() {
return ZipUtil.copy(localData);
}
代码示例来源:origin: com.impetus.fabric/fabric-jdbc-driver-shaded
/**
* Get the central data.
*
* @return the central data if present, else return the local file data
*/
@Override
public byte[] getCentralDirectoryData() {
if (centralData != null) {
return ZipUtil.copy(centralData);
}
return getLocalFileDataData();
}
代码示例来源:origin: com.impetus.fabric/fabric-jdbc-driver-shaded
/**
* Get the central data.
* @return the central data if present, else return the local file data
*/
@Override
public byte[] getCentralDirectoryData() {
if (centralData != null) {
return ZipUtil.copy(centralData);
}
return getLocalFileDataData();
}
代码示例来源:origin: com.impetus.fabric/fabric-jdbc-driver-shaded
/**
* The actual data to put into central directory.
*
* @return The CentralDirectoryData value
*/
@Override
public byte[] getCentralDirectoryData() {
return centralDirectoryData == null
? getLocalFileDataData() : ZipUtil.copy(centralDirectoryData);
}
内容来源于网络,如有侵权,请联系作者删除!