51 lines
2.1 KiB
Java
51 lines
2.1 KiB
Java
package filesystem.iso9660;
|
|
|
|
public class DirectoryRecord extends ByteParser {
|
|
public static final int LENGTH_OF_DIRECTORY_RECORD_START = 0;
|
|
public static final int LENGTH_OF_DIRECTORY_RECORD_END = 0;
|
|
public static final int EXTENDED_ATTRIBUTE_RECORD_LENGTH_START = 1;
|
|
public static final int EXTENDED_ATTRIBUTE_RECORD_LENGTH_END = 1;
|
|
public static final int LOCATION_OF_EXTENT_START = 2;
|
|
public static final int LOCATION_OF_EXTENT_END = 9;
|
|
public static final int DATA_LENGTH_START = 10;
|
|
public static final int DATA_LENGTH_END = 17;
|
|
public static final int RECORDING_DATE_AND_TIME_START = 18;
|
|
public static final int RECORDING_DATE_AND_TIME_END = 24;
|
|
public static final int FILE_FLAGS_START = 25;
|
|
public static final int FILE_FLAGS_END = 25;
|
|
public static final int FILE_UNIT_SIZE_START = 26;
|
|
public static final int FILE_UNIT_SIZE_END = 26;
|
|
public static final int INTERLEAVE_GAP_SIZE_START = 27;
|
|
public static final int INTERLEAVE_GAP_SIZE_END = 27;
|
|
public static final int VOLUME_SEQUENCE_NUMBER_START = 28;
|
|
public static final int VOLUME_SEQUENCE_NUMBER_END = 31;
|
|
public static final int LENGTH_OF_FILE_IDENTIFIER_START = 32;
|
|
public static final int LENGTH_OF_FILE_IDENTIFIER_END = 32;
|
|
public static final int FILE_IDENTIFIER_START = 33;
|
|
public static final int FILE_IDENTIFIER_END = 32;
|
|
public static final int lengthOfDirectoryRecord() {
|
|
return getByte(LENGTH_OF_DIRECTORY_RECORD_START);
|
|
}
|
|
public static final int extendedAttributeRecordLength() {
|
|
return getByte(EXTENDED_ATTRIBUTE_RECORD_LENGTH_START);
|
|
}
|
|
public static final int locationOfExtent() {
|
|
return getIntBE(LOCATION_OF_EXTENT_START);
|
|
}
|
|
public static final int dataLength() {
|
|
return getIntBE(DATA_LENGTH_START);
|
|
}
|
|
public static final int fileUnitSize() {
|
|
return getByte(FILE_UNIT_SIZE_START);
|
|
}
|
|
public static final int interleaveGapSize() {
|
|
return getByte(INTERLEAVE_GAP_SIZE_START);
|
|
}
|
|
public static final int volumeSequenceNumber() {
|
|
return getShortBE(VOLUME_SEQUENCE_NUMBER_START);
|
|
}
|
|
public static final int lengthOfFileIdentifier() {
|
|
return getByte(LENGTH_OF_FILE_IDENTIFIER_START);
|
|
}
|
|
}
|