hep.io.root.daemon
Class RootURLConnection
java.lang.Object
java.net.URLConnection
hep.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
Methods inherited from class java.net.URLConnection |
addRequestProperty, getAllowUserInteraction, getConnectTimeout, getContent, getContent, getContentEncoding, getContentType, getDefaultAllowUserInteraction, getDefaultRequestProperty, getDefaultUseCaches, getDoInput, getDoOutput, getExpiration, getFileNameMap, getHeaderField, getHeaderField, getHeaderFieldDate, getHeaderFieldInt, getHeaderFieldKey, getHeaderFields, getIfModifiedSince, getOutputStream, getPermission, getReadTimeout, getRequestProperties, getRequestProperty, getURL, getUseCaches, guessContentTypeFromName, guessContentTypeFromStream, setAllowUserInteraction, setConnectTimeout, setContentHandlerFactory, setDefaultAllowUserInteraction, setDefaultRequestProperty, setDefaultUseCaches, setDoInput, setDoOutput, setFileNameMap, setIfModifiedSince, setReadTimeout, setUseCaches, toString |
getInputStream
public InputStream getInputStream()
throws IOException
- Overrides:
getInputStream
in class URLConnection
- Throws:
IOException
connect
public void connect()
throws IOException
- Specified by:
connect
in class URLConnection
- Throws:
IOException
getContentLength
public int getContentLength()
- Overrides:
getContentLength
in class URLConnection
getLastModified
public long getLastModified()
- Overrides:
getLastModified
in class URLConnection
getDate
public long getDate()
- Overrides:
getDate
in class URLConnection
setRequestProperty
public void setRequestProperty(String key,
String value)
- Overrides:
setRequestProperty
in class URLConnection
Copyright © 2000-2013 FreeHEP. All Rights Reserved.