本文整理了Java中org.apache.commons.compress.archivers.zip.ZipEightByteInteger.getValue()
方法的一些代码示例,展示了ZipEightByteInteger.getValue()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZipEightByteInteger.getValue()
方法的具体详情如下:
包路径:org.apache.commons.compress.archivers.zip.ZipEightByteInteger
类名称:ZipEightByteInteger
方法名:getValue
[英]Get value as Java long.
[中]获取Java long的值。
代码示例来源:origin: org.apache.commons/commons-compress
/**
* Create instance from the eight bytes starting at offset.
* @param bytes the bytes to store as a ZipEightByteInteger
* @param offset the offset to start
*/
public ZipEightByteInteger (final byte[] bytes, final int offset) {
value = ZipEightByteInteger.getValue(bytes, offset);
}
代码示例来源:origin: org.apache.commons/commons-compress
/**
* Helper method to get the value as a Java long from an eight-byte array
* @param bytes the array of bytes
* @return the corresponding Java BigInteger value
*/
public static BigInteger getValue(final byte[] bytes) {
return getValue(bytes, 0);
}
代码示例来源:origin: org.apache.commons/commons-compress
/**
* Helper method to get the value as a Java long from eight bytes
* starting at given array offset
* @param bytes the array of bytes
* @param offset the offset to start
* @return the corresponding Java long value
*/
public static long getLongValue(final byte[] bytes, final int offset) {
return getValue(bytes, offset).longValue();
}
代码示例来源:origin: org.apache.commons/commons-compress
/**
* Override to make two instances with same value equal.
* @param o an object to compare
* @return true if the objects are equal
*/
@Override
public boolean equals(final Object o) {
if (o == null || !(o instanceof ZipEightByteInteger)) {
return false;
}
return value.equals(((ZipEightByteInteger) o).getValue());
}
代码示例来源:origin: org.apache.commons/commons-compress
BigInteger len = ZipEightByteInteger.getValue(suspectLocalFileHeader);
代码示例来源:origin: com.impetus.fabric/fabric-jdbc-driver-shaded
/**
* Helper method to get the value as a Java long from an eight-byte array
* @param bytes the array of bytes
* @return the corresponding Java BigInteger value
*/
public static BigInteger getValue(final byte[] bytes) {
return getValue(bytes, 0);
}
代码示例来源:origin: com.impetus.fabric/fabric-jdbc-driver-shaded
/**
* Create instance from the eight bytes starting at offset.
* @param bytes the bytes to store as a ZipEightByteInteger
* @param offset the offset to start
*/
public ZipEightByteInteger (final byte[] bytes, final int offset) {
value = ZipEightByteInteger.getValue(bytes, offset);
}
代码示例来源:origin: com.impetus.fabric/fabric-jdbc-driver-shaded
/**
* Override to make two instances with same value equal.
* @param o an object to compare
* @return true if the objects are equal
*/
@Override
public boolean equals(final Object o) {
if (o == null || !(o instanceof ZipEightByteInteger)) {
return false;
}
return value.equals(((ZipEightByteInteger) o).getValue());
}
代码示例来源:origin: com.impetus.fabric/fabric-jdbc-driver-shaded
/**
* Helper method to get the value as a Java long from eight bytes
* starting at given array offset
* @param bytes the array of bytes
* @param offset the offset to start
* @return the corresponding Java long value
*/
public static long getLongValue(final byte[] bytes, final int offset) {
return getValue(bytes, offset).longValue();
}
内容来源于网络,如有侵权,请联系作者删除!