JavaScript is disabled on your browser.
gnu.inet.ftp

Class FTPURLConnection



  • public class FTPURLConnection
    extends java.net.URLConnection
    An FTP URL connection.
    • Field Summary

      Fields
      Modifier and Type Field and Description
      protected FTPConnection connection
      The connection managing the protocol exchange.
      protected int fileStructure
      protected boolean passive
      protected int representationType
      protected int transferMode
      • Fields inherited from class java.net.URLConnection

        allowUserInteraction, connected, doInput, doOutput, ifModifiedSince, url, useCaches
    • Constructor Summary

      Constructors
      Constructor and Description
      FTPURLConnection (java.net.URL url)
      Constructs an FTP connection to the specified URL.
    • Method Summary

      Methods
      Modifier and Type Method and Description
      void addRequestProperty (java.lang.String key, java.lang.String value)
      void connect ()
      Establishes the connection.
      java.io.InputStream getInputStream ()
      Returns an input stream that reads from this open connection.
      java.io.OutputStream getOutputStream ()
      Returns an output stream that writes to this connection.
      java.util.Map getRequestProperties ()
      java.lang.String getRequestProperty (java.lang.String key)
      void setDoInput (boolean doinput)
      This connection supports doInput.
      void setDoOutput (boolean dooutput)
      This connection supports doOutput.
      void setRequestProperty (java.lang.String key, java.lang.String value)
      • Methods inherited from class java.net.URLConnection

        getAllowUserInteraction, getConnectTimeout, getContent, getContent, getContentEncoding, getContentLength, getContentLengthLong, getContentType, getDate, getDefaultAllowUserInteraction, getDefaultRequestProperty, getDefaultUseCaches, getDoInput, getDoOutput, getExpiration, getFileNameMap, getHeaderField, getHeaderField, getHeaderFieldDate, getHeaderFieldInt, getHeaderFieldKey, getHeaderFieldLong, getHeaderFields, getIfModifiedSince, getLastModified, getPermission, getReadTimeout, getURL, getUseCaches, guessContentTypeFromName, guessContentTypeFromStream, setAllowUserInteraction, setConnectTimeout, setContentHandlerFactory, setDefaultAllowUserInteraction, setDefaultRequestProperty, setDefaultUseCaches, setFileNameMap, setIfModifiedSince, setReadTimeout, setUseCaches, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • connection

        protected FTPConnection connection
        The connection managing the protocol exchange.
      • passive

        protected boolean passive
      • representationType

        protected int representationType
      • fileStructure

        protected int fileStructure
      • transferMode

        protected int transferMode
    • Constructor Detail

      • FTPURLConnection

        public FTPURLConnection(java.net.URL url)
        Constructs an FTP connection to the specified URL.
        Parameters:
        url - the URL
    • Method Detail

      • connect

        public void connect()
         throws java.io.IOException
        Establishes the connection.
        Specified by:
        connect in class java.net.URLConnection
        Throws:
        java.io.IOException
      • setDoInput

        public void setDoInput(boolean doinput)
        This connection supports doInput.
        Overrides:
        setDoInput in class java.net.URLConnection
      • setDoOutput

        public void setDoOutput(boolean dooutput)
        This connection supports doOutput.
        Overrides:
        setDoOutput in class java.net.URLConnection
      • getInputStream

        public java.io.InputStream getInputStream()
         throws java.io.IOException
        Returns an input stream that reads from this open connection.
        Overrides:
        getInputStream in class java.net.URLConnection
        Throws:
        java.io.IOException
      • getOutputStream

        public java.io.OutputStream getOutputStream()
         throws java.io.IOException
        Returns an output stream that writes to this connection.
        Overrides:
        getOutputStream in class java.net.URLConnection
        Throws:
        java.io.IOException
      • getRequestProperty

        public java.lang.String getRequestProperty(java.lang.String key)
        Overrides:
        getRequestProperty in class java.net.URLConnection
      • getRequestProperties

        public java.util.Map getRequestProperties()
        Overrides:
        getRequestProperties in class java.net.URLConnection
      • setRequestProperty

        public void setRequestProperty(java.lang.String key,
         java.lang.String value)
        Overrides:
        setRequestProperty in class java.net.URLConnection
      • addRequestProperty

        public void addRequestProperty(java.lang.String key,
         java.lang.String value)
        Overrides:
        addRequestProperty in class java.net.URLConnection

AltStyle によって変換されたページ (->オリジナル) /