kind = short integer value (file = 0; directory = 1) 1 byte volume name string length = byte unsigned length 27 bytes volume name string (if volume name string < 27 chars then pad with zeros) 4 bytes volume created mac date = long unsigned value in seconds since beginning 1904 to 2040 2 bytes volume signature = short unsigned HFS value 2 bytes volume type = short integer mac os value (types are Fixed HD = 0; Network Disk = 1; 400kB FD = 2;800kB FD = 3; 1.4MB FD = 4; Other Ejectable Media = 5 ) 4 bytes parent directory id = long unsigned HFS value 1 bytes file name string length = byte unsigned length 63 bytes file name string (if file name string < 63 chars then pad with zeros) 4 bytes file number = long unsigned HFS value 4 bytes file created mac date = long unsigned value in seconds since beginning 1904 to 2040 4 bytes file type name = long ASCII text string 4 bytes file creator name = long ASCII text string 2 bytes nlvl From (directories from alias thru to root) = short integer range 2 bytes nlvl To (directories from root thru to source) = short integer range (if alias on different volume then set above to -1) 4 bytes volume attributes = long hex flags 2 bytes volume file system id = short integer HFS value 10 bytes reserved = 80-bit value set to zero 4+ bytes optional extra data strings = short integer type + short unsigned string length (types are Extended Info End = -1; Directory Name = 0; Directory IDs = 1; Absolute Path = 2; AppleShare Zone Name = 3; AppleShare Server Name = 4; AppleShare User Name = 5; Driver Name = 6; Revised AppleShare info = 9; AppleRemoteAccess dialup info = 10) string data = hex dump odd lengths have a 1 byte odd string length pad = byte value set to zero Alias record structure outside of size length The following is for use with the Apple's Alias Resource Manager. 4 bytes resource type name = long ASCII text string 2 bytes resource ID = short integer value 2 bytes resource end pad = short value set to zero Java code to flag an alias file // This function checks whether a file matches the alias magic number. public static