Examples of writeUTF()


Examples of java.io.DataOutputStream.writeUTF()

         Modifier.STATIC | Modifier.FINAL |
         Modifier.SYNCHRONIZED | Modifier.NATIVE |
         Modifier.ABSTRACT | Modifier.STRICT);
    if ((mods & Modifier.PRIVATE) == 0) {
      if (TRACE_UID) System.out.println(sig.name + " " + sig.signature + " " + mods);
        dout.writeUTF(sig.name);
        dout.writeInt(mods);
        dout.writeUTF(sig.signature.replace('/', '.'));
    }
      }
View Full Code Here

Examples of java.io.DataOutputStream.writeUTF()

         Modifier.ABSTRACT | Modifier.STRICT);
    if ((mods & Modifier.PRIVATE) == 0) {
      if (TRACE_UID) System.out.println(sig.name + " " + sig.signature + " " + mods);
        dout.writeUTF(sig.name);
        dout.writeInt(mods);
        dout.writeUTF(sig.signature.replace('/', '.'));
    }
      }

      dout.flush();
View Full Code Here

Examples of java.io.DataOutputStream.writeUTF()

  try {
      ByteArrayOutputStream bout = new ByteArrayOutputStream();
      DataOutputStream dout = new DataOutputStream(bout);

      dout.writeUTF(cl.getName());
     
      int classMods = cl.getModifiers() &
    (Modifier.PUBLIC | Modifier.FINAL |
     Modifier.INTERFACE | Modifier.ABSTRACT);
View Full Code Here

Examples of java.io.DataOutputStream.writeUTF()

        ifaceNames[i] = interfaces[i].getName();
    }
    Arrays.sort(ifaceNames);
    for (int i = 0; i < ifaceNames.length; i++) {
      if (TRACE_UID) System.out.println(ifaceNames[i]);
        dout.writeUTF(ifaceNames[i]);
    }
      }
     
      Field[] fields = cl.getDeclaredFields();
      MemberSignature[] fieldSigs = new MemberSignature[fields.length];
View Full Code Here

Examples of java.io.DataOutputStream.writeUTF()

         Modifier.TRANSIENT);
    if (((mods & Modifier.PRIVATE) == 0) ||
        ((mods & (Modifier.STATIC | Modifier.TRANSIENT)) == 0))
    {
      if (TRACE_UID) System.out.println(sig.name + " " + sig.signature + " " + mods);
        dout.writeUTF(sig.name);
        dout.writeInt(mods);
        dout.writeUTF(sig.signature);
    }
      }
     
View Full Code Here

Examples of java.io.DataOutputStream.writeUTF()

        ((mods & (Modifier.STATIC | Modifier.TRANSIENT)) == 0))
    {
      if (TRACE_UID) System.out.println(sig.name + " " + sig.signature + " " + mods);
        dout.writeUTF(sig.name);
        dout.writeInt(mods);
        dout.writeUTF(sig.signature);
    }
      }
     
      if (hasStaticInitializer(cl)) {
        if (TRACE_UID) System.out.println("STATICINIT");
View Full Code Here

Examples of java.io.DataOutputStream.writeUTF()

    }
      }
     
      if (hasStaticInitializer(cl)) {
        if (TRACE_UID) System.out.println("STATICINIT");
    dout.writeUTF("<clinit>");
    dout.writeInt(Modifier.STATIC);
    dout.writeUTF("()V");
      }

      Constructor[] cons = cl.getDeclaredConstructors();
View Full Code Here

Examples of java.io.DataOutputStream.writeUTF()

   {
      long hash = 0;
      ByteArrayOutputStream bytearrayoutputstream = new ByteArrayOutputStream(512);
      MessageDigest messagedigest = MessageDigest.getInstance("SHA");
      DataOutputStream dataoutputstream = new DataOutputStream(new DigestOutputStream(bytearrayoutputstream, messagedigest));
      dataoutputstream.writeUTF(methodDesc);
      dataoutputstream.flush();
      byte abyte0[] = messagedigest.digest();
      for (int j = 0; j < Math.min(8, abyte0.length); j++)
         hash += (long) (abyte0[j] & 0xff) << j * 8;
      return hash;
View Full Code Here

Examples of java.io.DataOutputStream.writeUTF()

        log.debug("Writing message " + message.getId() + " '" + message.getSubject() + "' to disk");
        FileOutputStream fout = new FileOutputStream(new File(queueDirectory, String.valueOf(message.getId()) + ".msg"));
        try {
            DataOutputStream dout = new DataOutputStream(fout);
            dout.writeLong(message.getId());
            dout.writeUTF(message.getSinkName());
            dout.writeBoolean(message.isUrgent());
            dout.writeUTF(message.getSubject());
            for (Iterator i = message.getRecipients().iterator(); i.hasNext();) {
                Recipient r = (Recipient) i.next();
                dout.writeInt(r.getRecipientType());
View Full Code Here

Examples of java.io.DataOutputStream.writeUTF()

        try {
            DataOutputStream dout = new DataOutputStream(fout);
            dout.writeLong(message.getId());
            dout.writeUTF(message.getSinkName());
            dout.writeBoolean(message.isUrgent());
            dout.writeUTF(message.getSubject());
            for (Iterator i = message.getRecipients().iterator(); i.hasNext();) {
                Recipient r = (Recipient) i.next();
                dout.writeInt(r.getRecipientType());
                dout.writeUTF(r.getRecipientAlias() == null ? "" : r.getRecipientAlias());
                dout.writeUTF(r.getRealmName() == null ? "" : r.getRealmName());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.