类 DataConnection
- java.lang.Object
-
- java.net.URLConnection
-
- cn.mcres.gyhhy.MXLib.http.handlers.data.DataConnection
-
public class DataConnection extends URLConnection
- 作者:
- 32798
-
-
字段概要
-
从类继承的字段 java.net.URLConnection
allowUserInteraction, connected, doInput, doOutput, ifModifiedSince, url, useCaches
-
-
构造器概要
构造器 构造器 说明 DataConnection(URL u, Handler h)
-
方法概要
修饰符和类型 方法 说明 void
connect()
String
getContentEncoding()
int
getContentLength()
long
getContentLengthLong()
String
getContentType()
byte[]
getDatas()
InputStream
getInputStream()
-
从类继承的方法 java.net.URLConnection
addRequestProperty, getAllowUserInteraction, getConnectTimeout, getContent, getContent, getDate, getDefaultAllowUserInteraction, getDefaultRequestProperty, getDefaultUseCaches, getDefaultUseCaches, getDoInput, getDoOutput, getExpiration, getFileNameMap, getHeaderField, getHeaderField, getHeaderFieldDate, getHeaderFieldInt, getHeaderFieldKey, getHeaderFieldLong, getHeaderFields, getIfModifiedSince, getLastModified, getOutputStream, getPermission, getReadTimeout, getRequestProperties, getRequestProperty, getURL, getUseCaches, guessContentTypeFromName, guessContentTypeFromStream, setAllowUserInteraction, setConnectTimeout, setContentHandlerFactory, setDefaultAllowUserInteraction, setDefaultRequestProperty, setDefaultUseCaches, setDefaultUseCaches, setDoInput, setDoOutput, setFileNameMap, setIfModifiedSince, setReadTimeout, setRequestProperty, setUseCaches, toString
-
-
-
-
方法详细资料
-
getInputStream
public InputStream getInputStream() throws IOException
- 覆盖:
getInputStream
在类中URLConnection
- 抛出:
IOException
-
getDatas
public byte[] getDatas()
-
getContentLengthLong
public long getContentLengthLong()
- 覆盖:
getContentLengthLong
在类中URLConnection
-
getContentLength
public int getContentLength()
- 覆盖:
getContentLength
在类中URLConnection
-
getContentType
public String getContentType()
- 覆盖:
getContentType
在类中URLConnection
-
getContentEncoding
public String getContentEncoding()
- 覆盖:
getContentEncoding
在类中URLConnection
-
connect
public void connect() throws IOException
- 指定者:
connect
在类中URLConnection
- 抛出:
IOException
-
-