|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.at4j.zip.ZipInternalFileAttributes
public class ZipInternalFileAttributes
This object represents a ZipEntry
's internal file attributes. It
contains boolean properties about the Zip entry.
Despite the "file" in the name, this kind of attributes is used for all Zip entry types.
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
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)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ZipInternalFileAttributes()
false
.
public ZipInternalFileAttributes(UnsignedShort s)
s
- The short object, read from a Zip file.Method Detail |
---|
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()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |