*/
public boolean deleteRecording(Window parent, TopfieldTimerEntry entry) throws TopfieldConnectionException {
String request = String.format(DELETE_FORMAT, entry.getEntryNumber());
try {
URL deviceURL = configuration.getDeviceURL(DELETE_TIMER_PAGE);
URLConnection connection = deviceURL.openConnection();
connection.setConnectTimeout(configuration.getConnectionTimeout());
connection.setDoOutput(true);
OutputStreamWriter connectionWriter = new OutputStreamWriter(connection.getOutputStream());
connectionWriter.write(request);
connectionWriter.close();
// No need to check the answer, it's always OK. Nevertheless we have to
// read the result or the server on the device won't answer the next
// request.
InputStream contentStream = connection.getInputStream();
BufferedReader in = new BufferedReader(new InputStreamReader(contentStream));
while (in.readLine() != null) {
;
}
in.close();