/openjdk7/jdk/src/share/classes/sun/management/jdp/ |
H A D | JdpGenericPacket.java | 34 * JDP protocol magic. Magic allows a reader to quickly select 37 * has to start from this magic. 56 * Validate protocol header magic field 58 * @param magic - value to validate 61 public static void checkMagic(int magic) argument 63 if (magic != MAGIC) { 64 throw new JdpException("Invalid JDP magic header: " + magic); 84 * @return protocol magic
|
H A D | JdpPacketReader.java | 46 * Create packet reader, extract and check magic and version 57 int magic = pkt.readInt(); 58 JdpGenericPacket.checkMagic(magic); 60 throw new JdpException("Invalid JDP packet received, bad magic");
|
/openjdk7/corba/src/share/classes/com/sun/corba/se/impl/ior/ |
H A D | OldObjectKeyTemplateBase.java | 43 public OldObjectKeyTemplateBase( ORB orb, int magic, int scid, int serverid, argument 46 super( orb, magic, scid, serverid, orbid, oaid ) ; 48 // set version based on magic 49 if (magic == ObjectKeyFactoryImpl.JAVAMAGIC_OLD) 51 else if (magic == ObjectKeyFactoryImpl.JAVAMAGIC_NEW) 53 else // any other magic should not be here 54 throw wrapper.badMagic( new Integer( magic ) ) ;
|
H A D | ObjectKeyFactoryImpl.java | 53 /** Based on the magic and scid, return the appropriate 55 * magic. If scid is not valid, null should be returned. 58 ObjectKeyTemplate handle( int magic, int scid, argument 77 // New magic used in our object keys for JDK 1.4, J2EE 1.3 and later. 129 public ObjectKeyTemplate handle( int magic, int scid, 135 if (magic >= JAVAMAGIC_NEWER) 136 oktemp = new POAObjectKeyTemplate( orb, magic, scid, is, osh ) ; 138 oktemp = new OldPOAObjectKeyTemplate( orb, magic, scid, is, osh ) ; 140 if (magic >= JAVAMAGIC_NEWER) 141 oktemp = new JIDLObjectKeyTemplate( orb, magic, sci [all...] |
H A D | OldPOAObjectKeyTemplate.java | 47 public OldPOAObjectKeyTemplate( ORB orb, int magic, int scid, InputStream is ) argument 49 this( orb, magic, scid, is.read_long(), is.read_long(), is.read_long() ) ; 55 public OldPOAObjectKeyTemplate( ORB orb, int magic, int scid, InputStream is, argument 58 this( orb, magic, scid, is ) ; 62 public OldPOAObjectKeyTemplate( ORB orb, int magic, int scid, int serverid, argument 65 super( orb, magic, scid, serverid,
|
H A D | OldJIDLObjectKeyTemplate.java | 58 public OldJIDLObjectKeyTemplate( ORB orb, int magic, int scid, argument 61 this( orb, magic, scid, is ); 80 if (magic == ObjectKeyFactoryImpl.JAVAMAGIC_NEW && 95 public OldJIDLObjectKeyTemplate( ORB orb, int magic, int scid, int serverid) argument 97 super( orb, magic, scid, serverid, JIDL_ORB_ID, JIDL_OAID ) ; 100 public OldJIDLObjectKeyTemplate(ORB orb, int magic, int scid, InputStream is) argument 102 this( orb, magic, scid, is.read_long() ) ;
|
H A D | ObjectKeyTemplateBase.java | 63 private int magic ; field in class:ObjectKeyTemplateBase 96 public ObjectKeyTemplateBase( ORB orb, int magic, int scid, int serverid, argument 102 this.magic = magic ; 118 return (magic == other.magic) && (scid == other.scid) && 126 result = 37*result + magic ; 170 return magic ;
|
H A D | JIDLObjectKeyTemplate.java | 49 public JIDLObjectKeyTemplate( ORB orb, int magic, int scid, InputStream is ) argument 51 super( orb, magic, scid, is.read_long(), JIDL_ORB_ID, JIDL_OAID ); 59 public JIDLObjectKeyTemplate( ORB orb, int magic, int scid, InputStream is, argument 62 super( orb, magic, scid, is.read_long(), JIDL_ORB_ID, JIDL_OAID );
|
H A D | NewObjectKeyTemplateBase.java | 47 public NewObjectKeyTemplateBase( ORB orb, int magic, int scid, int serverid, argument 50 super( orb, magic, scid, serverid, orbid, oaid ) ; 53 if (magic != ObjectKeyFactoryImpl.JAVAMAGIC_NEWER) 54 throw wrapper.badMagic( new Integer( magic ) ) ;
|
H A D | POAObjectKeyTemplate.java | 52 public POAObjectKeyTemplate( ORB orb, int magic, int scid, InputStream is ) argument 54 super( orb, magic, scid, is.read_long(), is.read_string(), 63 public POAObjectKeyTemplate( ORB orb, int magic, int scid, InputStream is, argument 66 super( orb, magic, scid, is.read_long(), is.read_string(),
|
/openjdk7/jdk/src/share/classes/com/sun/java/util/jar/pack/ |
H A D | Utils.java | 312 byte[] magic = new byte[4]; 313 for (int i = 0; i < magic.length; i++) { 315 if (1 != in.read(magic, i, 1)) 319 return magic; 322 // magic number recognizers 323 static boolean isJarMagic(byte[] magic) { argument 324 return (magic[0] == (byte)'P' && 325 magic[1] == (byte)'K' && 326 magic[2] >= 1 && 327 magic[ 330 isPackMagic(byte[] magic) argument 336 isGZIPMagic(byte[] magic) argument [all...] |
/openjdk7/corba/src/share/classes/com/sun/corba/se/impl/protocol/giopmsgheaders/ |
H A D | FragmentMessage_1_1.java | 42 this.magic = msg11.magic;
|
H A D | FragmentMessage_1_2.java | 52 this.magic = msg12.magic;
|
H A D | Message_1_0.java | 49 int magic = (int) 0; field in class:Message_1_0 62 magic = _magic; 126 this.magic = istream.read_long(); 135 ostream.write_long(this.magic);
|
H A D | Message_1_1.java | 53 int magic = (int) 0; field in class:Message_1_1 66 magic = _magic; 180 this.magic = istream.read_long(); 189 ostream.write_long(this.magic);
|
/openjdk7/hotspot/src/cpu/x86/vm/ |
H A D | icache_x86.cpp | 39 const Register magic = c_rarg2; local 61 const Address magic(rsp, 3*wordSize); 64 __ movptr(rax, magic); // Handshake with caller to make sure it happened!
|
/openjdk7/hotspot/src/share/vm/runtime/ |
H A D | icache.cpp | 51 // The business with the magic number is just a little security. 55 static int magic = 0xbaadbabe; local 57 int auto_magic = magic; // Make a local copy to avoid race condition 60 ++magic;
|
H A D | icache.hpp | 46 typedef int (*flush_icache_stub_t)(address addr, int lines, int magic); 103 // magic - Magic number copied to result register to make sure
|
/openjdk7/jdk/test/java/util/Currency/ |
H A D | CheckDataVersion.java | 68 int magic = dis.readInt(); 69 if (magic != 0x43757244) { 70 throw new RuntimeException("The magic number in the JRE's currency data is incorrect. Expected: 0x43757244, Got: 0x"+magic);
|
/openjdk7/jdk/src/share/classes/sun/jvmstat/perfdata/monitor/ |
H A D | AbstractPerfDataBufferPrologue.java | 43 * jint magic; // magic number - 0xcafec0c0 97 // the magic number is always stored in big-endian format 108 * Get the magic number. 110 * @return int - the magic number 113 // the magic number is always stored in big-endian format 117 // get the magic number 119 int magic = byteBuffer.getInt(); 123 return magic; 225 * Get the magic numbe [all...] |
/openjdk7/jdk/src/share/classes/sun/management/counter/perf/ |
H A D | Prologue.java | 70 private int magic; field in class:Prologue 75 // the magic number is always stored in big-endian format 80 magic = header.getInt(); 82 // the magic number is always stored in big-endian format 83 if (magic != PERFDATA_MAGIC) { 107 return magic;
|
/openjdk7/jdk/src/share/native/com/sun/java/util/jar/pack/ |
H A D | main.cpp | 121 assert(peeklen == 4); // magic numbers are always 4 bytes 126 int magic = 0; local 128 magic <<= 8; 129 magic += peek[i] & 0xFF; 131 return magic; 376 int magic; local 379 magic = read_magic(&u, peek, (int)sizeof(peek)); 380 if ((magic & GZIP_MAGIC_MASK) == GZIP_MAGIC) { 383 u.gzin->start(magic); 406 magic [all...] |
/openjdk7/jdk/src/share/classes/com/sun/media/sound/ |
H A D | AuFileReader.java | 85 int magic = -1; 102 magic = dis.readInt(); 104 if (! (magic == AuFileFormat.AU_SUN_MAGIC) || (magic == AuFileFormat.AU_DEC_MAGIC) || 105 (magic == AuFileFormat.AU_SUN_INV_MAGIC) || (magic == AuFileFormat.AU_DEC_INV_MAGIC) ) { 112 if ((magic == AuFileFormat.AU_SUN_MAGIC) || (magic == AuFileFormat.AU_DEC_MAGIC)) { 301 dis.readInt(); // magic
|
/openjdk7/langtools/src/share/classes/com/sun/tools/classfile/ |
H A D | ClassFile.java | 75 magic = cr.readInt(); 101 public ClassFile(int magic, int minor_version, int major_version, argument 105 this.magic = magic; 143 return 4 + // magic 174 public final int magic; field in class:ClassFile
|
/openjdk7/corba/src/share/classes/com/sun/corba/se/GiopIDL/ |
H A D | GIOP.idl | 39 char magic [4]; 49 char magic [4];
|