|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.net.URLConnection com.metamatrix.common.protocol.MMURLConnection com.metamatrix.common.protocol.mmfile.MMFileURLConnection
public class MMFileURLConnection
Metamatrix's own implementation of the "file:" URL handler. The reason for a different handler is to support the "output stream" as the sun supplied one does not handle writing to it. Strings are not externalized because of the fact that we have huge dependencies with our plugin stuff to eclipse.
Field Summary | |
---|---|
static java.lang.String |
DELETED
|
static java.lang.String |
PROTOCOL
|
Fields inherited from class com.metamatrix.common.protocol.MMURLConnection |
---|
action, ALPHA, DATE, DELETE, FILE_LIST_SORT, LIST, props, READ, REVERSEALPHA, WRITE |
Fields inherited from class java.net.URLConnection |
---|
allowUserInteraction, connected, doInput, doOutput, ifModifiedSince, url, useCaches |
Constructor Summary | |
---|---|
MMFileURLConnection(java.net.URL u)
ctor |
|
MMFileURLConnection(java.net.URL u,
boolean readOnly)
|
Method Summary | |
---|---|
void |
connect()
Marks that connected |
java.io.File |
getFile()
Returns the underlying file for this connection. |
java.lang.String |
getHeaderField(java.lang.String name)
Provides support for returning the value for the last-modified header. |
java.io.InputStream |
getInputStream()
|
long |
getLastModified()
Returns the last modified time of the underlying file. |
java.io.OutputStream |
getOutputStream()
|
java.security.Permission |
getPermission()
Return a permission for reading of the file |
Methods inherited from class java.net.URLConnection |
---|
addRequestProperty, getAllowUserInteraction, getConnectTimeout, getContent, getContent, getContentEncoding, getContentLength, getContentType, getDate, getDefaultAllowUserInteraction, getDefaultRequestProperty, getDefaultUseCaches, getDoInput, getDoOutput, getExpiration, getFileNameMap, getHeaderField, getHeaderFieldDate, getHeaderFieldInt, getHeaderFieldKey, getHeaderFields, getIfModifiedSince, 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 |
Field Detail |
---|
public static java.lang.String PROTOCOL
public static java.lang.String DELETED
Constructor Detail |
---|
public MMFileURLConnection(java.net.URL u) throws java.net.MalformedURLException, java.io.IOException
u
- - URL to open the connection to
java.net.MalformedURLException
java.io.IOException
public MMFileURLConnection(java.net.URL u, boolean readOnly) throws java.net.MalformedURLException, java.io.IOException
java.net.MalformedURLException
java.io.IOException
Method Detail |
---|
public java.io.File getFile()
public void connect() throws java.io.IOException
connect
in class java.net.URLConnection
java.io.IOException
public java.io.InputStream getInputStream() throws java.io.IOException
getInputStream
in class java.net.URLConnection
java.io.IOException
URLConnection.getInputStream()
public java.io.OutputStream getOutputStream() throws java.io.IOException
getOutputStream
in class java.net.URLConnection
java.io.IOException
URLConnection.getOutputStream()
public java.lang.String getHeaderField(java.lang.String name)
getHeaderField
in class java.net.URLConnection
public java.security.Permission getPermission() throws java.io.IOException
getPermission
in class java.net.URLConnection
java.io.IOException
public long getLastModified()
getLastModified
in class java.net.URLConnection
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |