XDC - v. 0.6.1

net.sf.xdc.util
Class ClasspathURLConnection

java.lang.Object
  extended byjava.net.URLConnection
      extended bynet.sf.xdc.util.ClasspathURLConnection

public class ClasspathURLConnection
extends java.net.URLConnection

This class contains all functionality required for processing URLs with the classpath protocol.

Since:
0.5
Version:
0.5
Author:
Jens Voß

Nested Class Summary
static class ClasspathURLConnection.StreamHandlerFactory
          This (inner) class is a factory class which produces a suitable URLStreamHandler object which is capable of dealing with the classpath protocol.
 
Field Summary
 
Fields inherited from class java.net.URLConnection
allowUserInteraction, connected, doInput, doOutput, ifModifiedSince, url, useCaches
 
Method Summary
 void connect()
          This method opens a the parent URL's connection.
 java.io.InputStream getInputStream()
          This method retrieves the InputStream of the parent URL.
 
Methods inherited from class java.net.URLConnection
addRequestProperty, getAllowUserInteraction, getContent, getContent, getContentEncoding, getContentLength, getContentType, getDate, getDefaultAllowUserInteraction, getDefaultRequestProperty, getDefaultUseCaches, getDoInput, getDoOutput, getExpiration, getFileNameMap, getHeaderField, getHeaderField, getHeaderFieldDate, getHeaderFieldInt, getHeaderFieldKey, getHeaderFields, getIfModifiedSince, getLastModified, getOutputStream, getPermission, getRequestProperties, getRequestProperty, getURL, getUseCaches, guessContentTypeFromName, guessContentTypeFromStream, setAllowUserInteraction, setContentHandlerFactory, setDefaultAllowUserInteraction, setDefaultRequestProperty, setDefaultUseCaches, setDoInput, setDoOutput, setFileNameMap, setIfModifiedSince, setRequestProperty, setUseCaches, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

connect

public void connect()
             throws java.io.IOException
This method opens a the parent URL's connection.

Throws:
java.io.IOException

getInputStream

public java.io.InputStream getInputStream()
                                   throws java.io.IOException
This method retrieves the InputStream of the parent URL.

Returns:
The parent URL's InputStream
Throws:
java.io.IOException

XDC - v. 0.6.1