类 ConsoleURLConnection


  • public class ConsoleURLConnection
    extends java.net.URLConnection
    Console URLConnection
    从以下版本开始:
    1.0.0
    作者:
    Mercy
    • 字段概要

      • 从类继承的字段 java.net.URLConnection

        allowUserInteraction, connected, doInput, doOutput, ifModifiedSince, url, useCaches
    • 构造器概要

      构造器 
      构造器 说明
      ConsoleURLConnection​(java.net.URL url)
      Constructs a URL connection to the specified URL.
    • 方法概要

      所有方法 实例方法 具体方法 
      修饰符和类型 方法 说明
      void connect()  
      java.io.InputStream getInputStream()  
      java.io.OutputStream getOutputStream()  
      • 从类继承的方法 java.net.URLConnection

        addRequestProperty, 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, getRequestProperties, getRequestProperty, getURL, getUseCaches, guessContentTypeFromName, guessContentTypeFromStream, setAllowUserInteraction, setConnectTimeout, setContentHandlerFactory, setDefaultAllowUserInteraction, setDefaultRequestProperty, setDefaultUseCaches, setDoInput, setDoOutput, setFileNameMap, setIfModifiedSince, setReadTimeout, setRequestProperty, setUseCaches, toString
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • 构造器详细资料

      • ConsoleURLConnection

        public ConsoleURLConnection​(java.net.URL url)
        Constructs a URL connection to the specified URL. A connection to the object referenced by the URL is not created.
        参数:
        url - the specified URL.
    • 方法详细资料

      • connect

        public void connect()
                     throws java.io.IOException
        指定者:
        connect 在类中 java.net.URLConnection
        抛出:
        java.io.IOException
      • getInputStream

        public java.io.InputStream getInputStream()
                                           throws java.io.IOException
        覆盖:
        getInputStream 在类中 java.net.URLConnection
        抛出:
        java.io.IOException
      • getOutputStream

        public java.io.OutputStream getOutputStream()
                                             throws java.io.IOException
        覆盖:
        getOutputStream 在类中 java.net.URLConnection
        抛出:
        java.io.IOException