jcifs.smb
Class SmbURLConnection

java.lang.Object
  |
  +--java.net.URLConnection
        |
        +--jcifs.smb.SmbURLConnection

public class SmbURLConnection
extends URLConnection

This class represents a communications link between an application and an SMB resource represented by a URL. This class is returned by the java.net.URL openConnection method when an smb URL is used. See the SmbFile class for a detailed decription of the smb URL syntax with examples. In general this class is deficient. Adding more functionality is strait forward. If you require more functionality please express your intrest to the jcifs@samba.org mailing list.


Fields inherited from class java.net.URLConnection
allowUserInteraction, connected, doInput, doOutput, ifModifiedSince, url, useCaches
 
Method Summary
 void connect()
          Issue the actual socket IO necesary to open a connection with the server hosting the target resource.
 int getContentLength()
          Return the length in bytes of the resource specified by the URL.
 long getDate()
          Retrieves the last modified time of the file or directory specified by the URL for this connection.
 InputStream getInputStream()
          Create an InputStream from which bytes may be read from the taget specified by the URL of this connection.
 long getLastModified()
          Retrieves the last modified time of the file or directory specified by the URL for this connection.
 String toString()
          Return a String representing this object.
 
Methods inherited from class java.net.URLConnection
getAllowUserInteraction, getContent, getContentEncoding, getContentType, getDefaultAllowUserInteraction, getDefaultRequestProperty, getDefaultUseCaches, getDoInput, getDoOutput, getExpiration, getFileNameMap, getHeaderField, getHeaderField, getHeaderFieldDate, getHeaderFieldInt, getHeaderFieldKey, getIfModifiedSince, getOutputStream, getPermission, getRequestProperty, getURL, getUseCaches, guessContentTypeFromName, guessContentTypeFromStream, setAllowUserInteraction, setContentHandlerFactory, setDefaultAllowUserInteraction, setDefaultRequestProperty, setDefaultUseCaches, setDoInput, setDoOutput, setFileNameMap, setIfModifiedSince, setRequestProperty, setUseCaches
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

connect

public void connect()
             throws IOException
Issue the actual socket IO necesary to open a connection with the server hosting the target resource.
Overrides:
connect in class URLConnection

getContentLength

public int getContentLength()
Return the length in bytes of the resource specified by the URL.
Overrides:
getContentLength in class URLConnection

getDate

public long getDate()
Retrieves the last modified time of the file or directory specified by the URL for this connection.
Overrides:
getDate in class URLConnection

getLastModified

public long getLastModified()
Retrieves the last modified time of the file or directory specified by the URL for this connection.
Overrides:
getLastModified in class URLConnection

getInputStream

public InputStream getInputStream()
                           throws IOException
Create an InputStream from which bytes may be read from the taget specified by the URL of this connection.
Overrides:
getInputStream in class URLConnection

toString

public String toString()
Return a String representing this object.
Overrides:
toString in class URLConnection