Constructor and Description |
---|
ZipInternalFileAttributes()
Create an internal file attributes object with all property values set to
false . |
ZipInternalFileAttributes(UnsignedShort s)
Create an internal file attributes object with the property values parsed
from the supplied short object read from a Zip file.
|
Modifier and Type | Method and Description |
---|---|
UnsignedShort |
getEncodedValue()
Get the internal file attributes encoded for storing in a Zip file.
|
boolean |
isRecordsPrecededByLengthControlField()
The 0x0002 bit of this field indicates, if set, that a
4 byte variable record length control field precedes each
logical record indicating the length of the record.
|
boolean |
isTextFile()
The lowest bit of this field indicates, if set, that
the file is apparently an ASCII or text file.
|
void |
setRecordsPrecededByLengthControlField(boolean b) |
void |
setTextFile(boolean b) |
public ZipInternalFileAttributes()
false
.public ZipInternalFileAttributes(UnsignedShort s)
s
- The short object, read from a Zip file.public boolean isTextFile()
The lowest bit of this field indicates, if set, that the file is apparently an ASCII or text file. If not set, that the file apparently contains binary data. The remaining bits are unused in version 1.0.
true
if the file is apparently an ASCII or text file.public void setTextFile(boolean b)
public boolean isRecordsPrecededByLengthControlField()
The 0x0002 bit of this field indicates, if set, that a 4 byte variable record length control field precedes each logical record indicating the length of the record. The record length control field is stored in little-endian byte order. This flag is independent of text control characters, and if used in conjunction with text data, includes any control characters in the total length of the record. This value is provided for mainframe data transfer support.
true
if each logical record is preceded by a 4 byte
variable record length control field.public void setRecordsPrecededByLengthControlField(boolean b)
public UnsignedShort getEncodedValue()