de.fhg.igd.net
Class NullURLConnection

java.lang.Object
  extended by java.net.URLConnection
      extended by de.fhg.igd.net.NullURLConnection

public class NullURLConnection
extends URLConnection

This class represents a communication link between the application and the null-stream

Version:
"$Id: NullURLConnection.java 1913 2007-08-08 02:41:53Z jpeters $"
Author:
Patric Kabus

Field Summary
 
Fields inherited from class java.net.URLConnection
allowUserInteraction, connected, doInput, doOutput, ifModifiedSince, url, useCaches
 
Constructor Summary
NullURLConnection()
          Class constructor
 
Method Summary
 void connect()
          Because this method is not needed it has an empty implementation and just overrides its abstract superclass.
 InputStream getInputStream()
          Returns a NullInputStream that reads from this connection
 OutputStream getOutputStream()
          Returns a NullOutputStream to this connection
 
Methods inherited from class java.net.URLConnection
addRequestProperty, getAllowUserInteraction, getConnectTimeout, getContent, getContent, getContentEncoding, getContentLength, getContentType, getDate, getDefaultAllowUserInteraction, getDefaultRequestProperty, getDefaultUseCaches, getDoInput, getDoOutput, getExpiration, getFileNameMap, getHeaderField, getHeaderField, getHeaderFieldDate, getHeaderFieldInt, getHeaderFieldKey, getHeaderFields, getIfModifiedSince, getLastModified, getPermission, getReadTimeout, getRequestProperties, getRequestProperty, getURL, getUseCaches, guessContentTypeFromName, guessContentTypeFromStream, setAllowUserInteraction, setConnectTimeout, setContentHandlerFactory, setDefaultAllowUserInteraction, setDefaultRequestProperty, setDefaultUseCaches, setDoInput, setDoOutput, setFileNameMap, setIfModifiedSince, setReadTimeout, setRequestProperty, setUseCaches, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NullURLConnection

public NullURLConnection()
Class constructor

Method Detail

connect

public void connect()
Because this method is not needed it has an empty implementation and just overrides its abstract superclass.

Specified by:
connect in class URLConnection

getOutputStream

public OutputStream getOutputStream()
                             throws IOException
Returns a NullOutputStream to this connection

Overrides:
getOutputStream in class URLConnection
Returns:
a NullOutputStream
Throws:
IOException - if an I/O error occurs while generating an Outputstream

getInputStream

public InputStream getInputStream()
                           throws IOException
Returns a NullInputStream that reads from this connection

Overrides:
getInputStream in class URLConnection
Returns:
a NullInputStream
Throws:
IOException - if an I/O error occurs while generating an Inputstream


Copyright © Fraunhofer Gesellschaft. All Rights Reserved.