// Path: android/Commons/src/triaina/commons/exception/IORuntimeException.java
// public class IORuntimeException extends CommonRuntimeException {
// 	private static final long serialVersionUID = -8000893106100281337L;
// 
// 	public IORuntimeException() {
// 	}
// 
// 	public IORuntimeException(String detailMessage, Throwable throwable) {
// 		super(detailMessage, throwable);
// 	}
// 
// 	public IORuntimeException(String detailMessage) {
// 		super(detailMessage);
// 	}
// 
// 	public IORuntimeException(Throwable throwable) {
// 		super(throwable);
// 	}
// }


import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.InputStream;
import triaina.commons.exception.IORuntimeException;
package triaina.commons.utils;





public final class InputStreamUtils {
	private InputStreamUtils() {}
	
    public static byte[] toByteArray(InputStream is) {
    	ByteArrayOutputStream bos = new ByteArrayOutputStream();
    	byte[] buffer = new byte[4096];
    	int len = 0;
    	
    	try {
    		while ((len = is.read(buffer)) > 0) {
    			bos.write(buffer, 0, len);
    		}
    	} catch (IOException exp) {
// Path: android/Commons/src/triaina/commons/exception/IORuntimeException.java
// public class IORuntimeException extends CommonRuntimeException {
// 	private static final long serialVersionUID = -8000893106100281337L;
// 
// 	public IORuntimeException() {
// 	}
// 
// 	public IORuntimeException(String detailMessage, Throwable throwable) {
// 		super(detailMessage, throwable);
// 	}
// 
// 	public IORuntimeException(String detailMessage) {
// 		super(detailMessage);
// 	}
// 
// 	public IORuntimeException(Throwable throwable) {
// 		super(throwable);
// 	}
// }


// Path: android/Commons/src/triaina/commons/utils/InputStreamUtils.java
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.InputStream;
import triaina.commons.exception.IORuntimeException;

package triaina.commons.utils;





public final class InputStreamUtils {
	private InputStreamUtils() {}
	
    public static byte[] toByteArray(InputStream is) {
    	ByteArrayOutputStream bos = new ByteArrayOutputStream();
    	byte[] buffer = new byte[4096];
    	int len = 0;
    	
    	try {
    		while ((len = is.read(buffer)) > 0) {
    			bos.write(buffer, 0, len);
    		}
    	} catch (IOException exp) {
    		throw new IORuntimeException(exp);