java 912 B

123456789101112131415161718192021222324252627
  1. #------------------------------------------------------------
  2. # $File: java,v 1.18 2015/11/29 22:08:14 christos Exp $
  3. # Java ByteCode and Mach-O binaries (e.g., Mac OS X) use the
  4. # same magic number, 0xcafebabe, so they are both handled
  5. # in the entry called "cafebabe".
  6. #------------------------------------------------------------
  7. # Java serialization
  8. # From Martin Pool (m.pool@pharos.com.au)
  9. 0 beshort 0xaced Java serialization data
  10. >2 beshort >0x0004 \b, version %d
  11. 0 belong 0xfeedfeed Java KeyStore
  12. !:mime application/x-java-keystore
  13. 0 belong 0xcececece Java JCE KeyStore
  14. !:mime application/x-java-jce-keystore
  15. # Java source
  16. 0 regex \^import.*;$ Java source
  17. !:mime text/x-java
  18. # Java HPROF dumps
  19. # https://java.net/downloads/heap-snapshot/hprof-binary-format.html
  20. 0 string JAVA\x20PROFILE\x201.0.
  21. >0x12 short 0
  22. >>0x11 ushort-0x31 <2 Java HPROF dump,
  23. >>0x17 beqdate/1000 x created %s