2011-10-06 06:01:12 +00:00
|
|
|
|
2000-11-05 08:33:55 +00:00
|
|
|
#------------------------------------------------------------
|
2012-04-13 23:30:38 +00:00
|
|
|
# $File: java,v 1.13 2011/12/08 12:12:46 rrt Exp $
|
2007-05-24 16:12:23 +00:00
|
|
|
# Java ByteCode and Mach-O binaries (e.g., Mac OS X) use the
|
|
|
|
# same magic number, 0xcafebabe, so they are both handled
|
|
|
|
# in the entry called "cafebabe".
|
2000-11-05 08:33:55 +00:00
|
|
|
#------------------------------------------------------------
|
|
|
|
# Java serialization
|
|
|
|
# From Martin Pool (m.pool@pharos.com.au)
|
|
|
|
0 beshort 0xaced Java serialization data
|
|
|
|
>2 beshort >0x0004 \b, version %d
|
2008-01-13 20:35:16 +00:00
|
|
|
|
|
|
|
0 belong 0xfeedfeed Java KeyStore
|
2009-01-02 02:57:16 +00:00
|
|
|
!:mime application/x-java-keystore
|
2008-01-13 20:35:16 +00:00
|
|
|
0 belong 0xcececece Java JCE KeyStore
|
2009-01-02 02:57:16 +00:00
|
|
|
!:mime application/x-java-jce-keystore
|
2008-01-13 20:35:16 +00:00
|
|
|
|
|
|
|
# Dalvik .dex format. http://retrodev.com/android/dexformat.html
|
|
|
|
# From <mkf@google.com> "Mike Fleming"
|
|
|
|
0 string dex\n
|
|
|
|
>0 regex dex\n[0-9][0-9][0-9]\0 Dalvik dex file
|
|
|
|
>4 string >000 version %s
|
|
|
|
0 string dey\n
|
|
|
|
>0 regex dey\n[0-9][0-9][0-9]\0 Dalvik dex file (optimized for host)
|
|
|
|
>4 string >000 version %s
|
|
|
|
|
2012-04-13 23:30:38 +00:00
|
|
|
# Java source
|
|
|
|
0 regex ^import.*;$ Java source
|
|
|
|
!:mime text/x-java
|