yawda.utils.net
Class CMemoryURLConnection

java.lang.Object
  extended byjava.net.URLConnection
      extended byyawda.utils.net.CMemoryURLConnection

public final class CMemoryURLConnection
extends URLConnection

Author:
Quentin Anciaux

Field Summary
 
Fields inherited from class java.net.URLConnection
allowUserInteraction, connected, doInput, doOutput, ifModifiedSince, url, useCaches
 
Constructor Summary
CMemoryURLConnection(URL url, byte[] content)
           
 
Method Summary
 void connect()
           
 boolean getAllowUserInteraction()
           
 String getContentEncoding()
           
 int getContentLength()
           
 String getContentType()
           
 boolean getDoInput()
           
 boolean getDoOutput()
           
 InputStream getInputStream()
           
 long getLastModified()
           
 OutputStream getOutputStream()
           
 String toString()
           
 
Methods inherited from class java.net.URLConnection
addRequestProperty, getContent, getContent, getDate, getDefaultAllowUserInteraction, getDefaultRequestProperty, getDefaultUseCaches, getExpiration, getFileNameMap, getHeaderField, getHeaderField, getHeaderFieldDate, getHeaderFieldInt, getHeaderFieldKey, getHeaderFields, getIfModifiedSince, getPermission, getRequestProperties, getRequestProperty, getURL, getUseCaches, guessContentTypeFromName, guessContentTypeFromStream, setAllowUserInteraction, setContentHandlerFactory, setDefaultAllowUserInteraction, setDefaultRequestProperty, setDefaultUseCaches, setDoInput, setDoOutput, setFileNameMap, setIfModifiedSince, setRequestProperty, setUseCaches
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CMemoryURLConnection

public CMemoryURLConnection(URL url,
                            byte[] content)
Method Detail

getAllowUserInteraction

public final boolean getAllowUserInteraction()
See Also:
URLConnection.getAllowUserInteraction()

getContentEncoding

public final String getContentEncoding()
See Also:
URLConnection.getContentEncoding()

getContentLength

public final int getContentLength()
See Also:
URLConnection.getContentLength()

getContentType

public final String getContentType()
See Also:
URLConnection.getContentType()

getDoInput

public final boolean getDoInput()
See Also:
URLConnection.getDoInput()

getDoOutput

public final boolean getDoOutput()
See Also:
URLConnection.getDoOutput()

getInputStream

public final InputStream getInputStream()
                                 throws IOException
Throws:
IOException
See Also:
URLConnection.getInputStream()

getLastModified

public final long getLastModified()
See Also:
URLConnection.getLastModified()

getOutputStream

public final OutputStream getOutputStream()
                                   throws IOException
Throws:
IOException
See Also:
URLConnection.getOutputStream()

toString

public final String toString()
See Also:
Object.toString()

connect

public final void connect()
                   throws IOException
Throws:
IOException
See Also:
URLConnection.connect()