FreeHEP API
Version current

hep.io.root.daemon
Class RootURLConnection

java.lang.Object
  extended byjava.net.URLConnection
      extended byhep.io.root.daemon.RootURLConnection

public class RootURLConnection
extends URLConnection

The core class for dealing with root: protocol connections. Currently only supports reading files. Currently only supports plain text (insecure) authorization.

Author:
Tony Johnson
Source Code:
RootURLConnection.java

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

Method Detail

getInputStream

public InputStream getInputStream()
                           throws IOException
Throws:
IOException

connect

public void connect()
             throws IOException
Throws:
IOException

getContentLength

public int getContentLength()

getLastModified

public long getLastModified()

getDate

public long getDate()

setRequestProperty

public void setRequestProperty(String key,
                               String value)

FreeHEP API
Version current

Copyright © 2000-2004 FreeHEP, All Rights Reserved.