/** * Send the byte array to the autosampler. * * @param par as byte array. * @return true if successful. */ public boolean send(byte[] par) { if (this.isConnected()) { m_CryoSocket.write(par); // Messages.postDebug("cryocmd", // "Sent to CryoBay: " + arrayToHexString(par)); return true; } else { return false; } }
/** * send String directly to the cryobay * * @param cmd as a string * @return boolean if sent correctly */ public boolean send(String cmd) { if (this.isConnected()) { if (debug) System.out.println("CryoSocketControl.send: " + cmd); // Messages.postDebug("cryocmd", // "CryoSocketControl.send(\"" + cmd + "\")"); m_CryoSocket.write(cmd.getBytes()); return true; } else { return false; } }