Examples of toBinary()


Examples of akka.serialization.Serializer.toBinary()

    // Get the Binded Serializer for it
    Serializer serializer = serialization
        .findSerializerFor(originalMessage);

    // Turn the object into bytes
    byte[] bytes = serializer.toBinary(originalMessage);

    // Turn the byte[] back into an object,
    MyMessage deSerializedMessage = (MyMessage) serializer.fromBinary(
        bytes, MyMessage.class);
View Full Code Here

Examples of anvil.core.Any.toBinary()

          _access.write(value.toInt());
          break;
        case IS_BINARY:
          n = value.sizeOf();
          if (n > 0) {
            _access.write(value.toBinary(), 0, n);
          }
          break;
        default:
          String buffer = value.toString();
          if (buffer.length()>0) {
View Full Code Here

Examples of anvil.core.Any.toBinary()

      try {
        for (int i=0; i<parameters.length; i++) {
          Any param = parameters[i];

          if (param.isBinary()) {
            update(param.toBinary(), 0, param.sizeOf());

          } else if (param instanceof AnyFile) {
            update(context, (File)param.toObject());

          } else if (param instanceof AnyURL) {
View Full Code Here

Examples of anvil.core.Any.toBinary()

          _output.write(value.toInt());
          break;
        case IS_BINARY:
          int len = value.sizeOf();
          if (n > 0) {
            _output.write(value.toBinary(), 0, len);
          }
          break;
        default:
          String buffer = value.toString();
          if (buffer.length()>0) {
View Full Code Here

Examples of anvil.core.Any.toBinary()

      try {
        Any param = parameters[0];
        byte[] data;
        int size;
        if (param.isBinary()) {
          data = param.toBinary();
          size = param.sizeOf();
        } else {
          data = anvil.util.Conversions.getBytes(param.toString());
          size = data.length;
        }
View Full Code Here

Examples of anvil.core.Any.toBinary()

      if (parameters.length > 0) {
        Any param = parameters[0];
        byte[] data;
        int size;
        if (param.isBinary()) {
          data = param.toBinary();
          size = param.sizeOf();
        } else {
          data = anvil.util.Conversions.getBytes(param.toString());
          size = data.length;
        }
View Full Code Here

Examples of br.com.gmartins.simbler.instructions.value.Value.toBinary()

            if (isNumber()) {
                Value value = instruction.getValue();
                builder.append("<HTML>");
                builder.append("<center><b>Valor Numérico</b></center> ");
                builder.append("<br>");
                builder.append("<b>Binário:</b> ").append(value.toBinary());
                builder.append("<br>");
                builder.append("<b>Decimal:</b> ").append(value.toDecimal());
                builder.append("<br>");
                builder.append("<b>Hexadecimal:</b> ").append(value.toHex());
                builder.append("</HTML>");
View Full Code Here

Examples of br.com.gmartins.simbler.instructions.value.Value.toBinary()

                } else {
                    Value value = dest.getValue();
                    builder.append("<HTML>");
                    builder.append("<center><b>Endereço de Memória</b></center>");
                    builder.append("<br>");
                    builder.append("<b>Binário:</b> ").append(value.toBinary());
                    builder.append("<br>");
                    builder.append("<b>Decimal:</b> ").append(value.toDecimal());
                    builder.append("<br>");
                    builder.append("<b>Hexadecimal:</b> ").append(value.toHex());
                    builder.append("</HTML>");
View Full Code Here

Examples of net.wastl.webmail.ui.html.HTMLImage.toBinary()

                        res.setHeader("Connection", "Keep-Alive");

                        /* Send 8k junks */
                        int offset = 0;
                        while (offset + chunk_size < img.size()) {
                            out.write(img.toBinary(), offset, chunk_size);
                            offset += chunk_size;
                        }
                        out.write(img.toBinary(), offset, img.size() - offset);
                        out.flush();

View Full Code Here

Examples of net.wastl.webmail.ui.html.HTMLImage.toBinary()

                        int offset = 0;
                        while (offset + chunk_size < img.size()) {
                            out.write(img.toBinary(), offset, chunk_size);
                            offset += chunk_size;
                        }
                        out.write(img.toBinary(), offset, img.size() - offset);
                        out.flush();

                        out.close();
                    } else {
                        final byte[] encoded_content =
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.