/** * Returns the compression method for this entry. * * @see #setMethod(int) * @see ZipOutputStream#getMethod() */ public final int getMethod() { return isInit(METHOD) ? method & UShort.MAX_VALUE : UNKNOWN; }
/** * Returns the external file attributes. * * @since TrueZIP 7.3 * @return The external file attributes. */ public final long getExternalAttributes() { return isInit(EATTR) ? eattr & UInt.MAX_VALUE : UNKNOWN; }
public final short getPlatform() { return isInit(PLATFORM) ? (short) (platform & UByte.MAX_VALUE) : UNKNOWN; }
public final long getCrc() { return isInit(CRC) ? crc & UInt.MAX_VALUE : UNKNOWN; }
final long getRawExternalAttributes() { if (!isInit(EATTR)) return isDirectory() ? 0x10 : 0; return eattr & UInt.MAX_VALUE; }
public final long getTime() { if (!isInit(DTIME)) return UNKNOWN; return getDateTimeConverter().toJavaTime(dtime & UInt.MAX_VALUE); }