Package com.maverick.util

Examples of com.maverick.util.ByteArrayReader.readString()


    }

    // Get the application name
    String name = msg.readString();
    msg.readInt(); // shortcut id
    String launchId = msg.readString();
    String descriptor = msg.readString();
    Hashtable parameters = new Hashtable();
    parameters.put("launchId", launchId);
    parameters.put("ticket", launchId);
View Full Code Here


    // Get the application name
    String name = msg.readString();
    msg.readInt(); // shortcut id
    String launchId = msg.readString();
    String descriptor = msg.readString();
    Hashtable parameters = new Hashtable();
    parameters.put("launchId", launchId);
    parameters.put("ticket", launchId);

    Application app = launchApplication(name, descriptor, parameters);
View Full Code Here

    } else if (request.getRequestName().equals(OPEN_URL_REQUEST)
        && request.getRequestData() != null) {
      try {
        ByteArrayReader msg = new ByteArrayReader(request
            .getRequestData());
        openURL(msg.readString(), msg.readString(), request);
        return true;
      } catch (IOException e) {
        // #ifdef DEBUG
        log.error("Failed to process openURL request", e);
        // #endif
View Full Code Here

    } else if (request.getRequestName().equals(OPEN_URL_REQUEST)
        && request.getRequestData() != null) {
      try {
        ByteArrayReader msg = new ByteArrayReader(request
            .getRequestData());
        openURL(msg.readString(), msg.readString(), request);
        return true;
      } catch (IOException e) {
        // #ifdef DEBUG
        log.error("Failed to process openURL request", e);
        // #endif
View Full Code Here

    try {
      if (request.getRequestData() != null) {
        ByteArrayReader msg = new ByteArrayReader(request
            .getRequestData());
        String title = msg.readString();
        msg.readInt(); // type
        String message = msg.readString();

        getGUI().popup(
            null,
View Full Code Here

      if (request.getRequestData() != null) {
        ByteArrayReader msg = new ByteArrayReader(request
            .getRequestData());
        String title = msg.readString();
        msg.readInt(); // type
        String message = msg.readString();

        getGUI().popup(
            null,
            MessageFormat.format(Messages
                .getString("Agent.received"), new Object[] {
View Full Code Here

            throw new IOException(
                "Server failed to return version data");

          ByteArrayReader reader = new ByteArrayReader(syncRequest
              .getRequestData());
          serverVersion = reader.readString();

          /**
           * Initialize the managers. Tunnels are no longer recorded
           * here unless they are active. This simplifies the agent by
           * making it respond to start and stop requests from the new
View Full Code Here

              throw new ExtensionException(ExtensionException.AGENT_REFUSED_LAUNCH);
            }
            ByteArrayReader baw = new ByteArrayReader(agentRequest.getRequestData());
            try {
              while(true) {
                String name = baw.readString();
                String hostname = baw.readString();
                long port = baw.readInt();
                if(tunnels.length() > 0) {
                  tunnels.append(",");
                }
View Full Code Here

            }
            ByteArrayReader baw = new ByteArrayReader(agentRequest.getRequestData());
            try {
              while(true) {
                String name = baw.readString();
                String hostname = baw.readString();
                long port = baw.readInt();
                if(tunnels.length() > 0) {
                  tunnels.append(",");
                }
                tunnels.append(name);
View Full Code Here

     * @return
     */
    public boolean isPassphraseProtected(byte[] formattedKey) {
        try {
            ByteArrayReader bar = new ByteArrayReader(getKeyBlob(formattedKey));
            String type = bar.readString();

            if (type.equals("none")) {
                return false;
            }

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.