"Fossies" - the Fresh Open Source Software Archive

Member "file-5.35/magic/Magdir/java" (19 Aug 2018, 911 Bytes) of package /linux/misc/file-5.35.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "java": 5.34_vs_5.35.

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