Add readPacketSizeIfAvailable to IOUtils.java.