com.netmera.mobile.util
Class HttpUtils

java.lang.Object
  extended by com.netmera.mobile.util.HttpUtils

public class HttpUtils
extends java.lang.Object


Constructor Summary
HttpUtils()
           
 
Method Summary
static byte[] toByteArray(java.io.File file)
           
static byte[] toByteArray(java.io.InputStream is)
           
static byte[] toByteArray(java.net.URL url)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpUtils

public HttpUtils()
Method Detail

toByteArray

public static byte[] toByteArray(java.net.URL url)
                          throws java.io.IOException
Throws:
java.io.IOException

toByteArray

public static byte[] toByteArray(java.io.InputStream is)
                          throws java.io.IOException
Throws:
java.io.IOException

toByteArray

public static byte[] toByteArray(java.io.File file)
                          throws java.io.IOException
Throws:
java.io.IOException