1284194Sdelphij
2284194Sdelphij#------------------------------------------------------------
3284194Sdelphij# $File: java,v 1.16 2013/09/24 20:22:03 christos Exp $
4284194Sdelphij# Java ByteCode and Mach-O binaries (e.g., Mac OS X) use the
5284194Sdelphij# same magic number, 0xcafebabe, so they are both handled
6284194Sdelphij# in the entry called "cafebabe".
7284194Sdelphij#------------------------------------------------------------
8284194Sdelphij# Java serialization
9284194Sdelphij# From Martin Pool (m.pool@pharos.com.au)
10284194Sdelphij0	beshort		0xaced		Java serialization data
11284194Sdelphij>2	beshort		>0x0004		\b, version %d
12284194Sdelphij
13284194Sdelphij0	belong		0xfeedfeed	Java KeyStore
14284194Sdelphij!:mime	application/x-java-keystore
15284194Sdelphij0	belong		0xcececece	Java JCE KeyStore
16284194Sdelphij!:mime	application/x-java-jce-keystore
17284194Sdelphij
18284194Sdelphij# Java source
19284194Sdelphij0	regex	^import.*;$	Java source
20284194Sdelphij!:mime	text/x-java
21