public class FileURLConnection extends AbstractURLConnection
| Modifier and Type | Field and Description |
|---|---|
private VirtualFile |
file |
private VirtualFile |
mountPoint |
private RootFileSystem |
rootFileSystem |
| Constructor and Description |
|---|
FileURLConnection(java.net.URL url) |
| Modifier and Type | Method and Description |
|---|---|
void |
connect() |
java.io.File |
getContent() |
int |
getContentLength() |
java.io.InputStream |
getInputStream() |
long |
getLastModified() |
protected java.lang.String |
getName() |
java.security.Permission |
getPermission() |
getContentType, getHeaderField, toURIaddRequestProperty, getAllowUserInteraction, getConnectTimeout, getContent, getContentEncoding, getContentLengthLong, getDate, getDefaultAllowUserInteraction, getDefaultRequestProperty, getDefaultUseCaches, getDoInput, getDoOutput, getExpiration, getFileNameMap, getHeaderField, getHeaderFieldDate, getHeaderFieldInt, getHeaderFieldKey, getHeaderFieldLong, getHeaderFields, getIfModifiedSince, getOutputStream, getReadTimeout, getRequestProperties, getRequestProperty, getURL, getUseCaches, guessContentTypeFromName, guessContentTypeFromStream, setAllowUserInteraction, setConnectTimeout, setContentHandlerFactory, setDefaultAllowUserInteraction, setDefaultRequestProperty, setDefaultUseCaches, setDoInput, setDoOutput, setFileNameMap, setIfModifiedSince, setReadTimeout, setRequestProperty, setUseCaches, toStringprivate final RootFileSystem rootFileSystem
private final VirtualFile mountPoint
private final VirtualFile file
public FileURLConnection(java.net.URL url)
throws java.io.IOException
java.io.IOExceptionpublic java.io.File getContent()
throws java.io.IOException
getContent in class java.net.URLConnectionjava.io.IOExceptionpublic int getContentLength()
getContentLength in class java.net.URLConnectionpublic long getLastModified()
getLastModified in class java.net.URLConnectionpublic java.io.InputStream getInputStream()
throws java.io.IOException
getInputStream in class java.net.URLConnectionjava.io.IOExceptionpublic java.security.Permission getPermission()
throws java.io.IOException
getPermission in class java.net.URLConnectionjava.io.IOExceptionpublic void connect()
throws java.io.IOException
connect in class java.net.URLConnectionjava.io.IOExceptionprotected java.lang.String getName()
getName in class AbstractURLConnection