Reduce dependency on commons-io and commons-codec (#10614)
Signed-off-by: Wouter Born <github@maindrain.net>
This commit is contained in:
@@ -23,7 +23,6 @@ import java.util.concurrent.ScheduledExecutorService;
|
||||
import java.util.concurrent.ScheduledFuture;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
|
||||
import org.apache.commons.io.IOUtils;
|
||||
import org.openhab.binding.allplay.internal.AllPlayBindingConstants;
|
||||
import org.openhab.binding.allplay.internal.AllPlayBindingProperties;
|
||||
import org.openhab.core.common.ThreadPoolManager;
|
||||
@@ -538,7 +537,7 @@ public class AllPlayHandler extends BaseThingHandler
|
||||
private byte[] getRawDataFromUrl(String urlString) throws Exception {
|
||||
URL url = new URL(urlString);
|
||||
URLConnection connection = url.openConnection();
|
||||
return IOUtils.toByteArray(connection.getInputStream());
|
||||
return connection.getInputStream().readAllBytes();
|
||||
}
|
||||
|
||||
private int convertPercentToAbsoluteVolume(PercentType percentVolume) throws SpeakerException {
|
||||
|
||||
Reference in New Issue
Block a user