public class DataURLConnection extends URLConnection
allowUserInteraction, connected, doInput, doOutput, ifModifiedSince, url, useCaches| 限定符和类型 | 方法和说明 |
|---|---|
void |
connect() |
int |
getContentLength() |
String |
getContentType() |
InputStream |
getInputStream() |
protected void |
parseURL() |
addRequestProperty, getAllowUserInteraction, getConnectTimeout, getContent, getContent, getContentEncoding, getContentLengthLong, getDate, getDefaultAllowUserInteraction, getDefaultRequestProperty, 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, setDoInput, setDoOutput, setFileNameMap, setIfModifiedSince, setReadTimeout, setRequestProperty, setUseCaches, toStringpublic void connect()
throws IOException
connect 在类中 URLConnectionIOExceptionpublic String getContentType()
getContentType 在类中 URLConnectionpublic int getContentLength()
getContentLength 在类中 URLConnectionpublic InputStream getInputStream() throws IOException
getInputStream 在类中 URLConnectionIOExceptionprotected void parseURL()
throws UnsupportedEncodingException
Copyright © 2019. All Rights Reserved.