/** * Send the ENC command with the specified data. * * @param data The data to send with the command. * @return server reply. * @throws IOException If an I/O error occurs while sending the command. * @since 3.0 */ public int execENC(byte[] data) throws IOException { if (data != null) { return sendCommand(CMD_ENC, Base64.encodeBase64StringUnChunked(data)); } else { return sendCommand(CMD_ENC, ""); // perhaps "=" or just sendCommand(String)? } }
/** * Send the ADAT command with the specified authentication data. * * @param data The data to send with the command. * @return server reply. * @throws IOException If an I/O error occurs while sending the command. * @since 3.0 */ public int execADAT(byte[] data) throws IOException { if (data != null) { return sendCommand(CMD_ADAT, Base64.encodeBase64StringUnChunked(data)); } else { return sendCommand(CMD_ADAT); } }