public final class PathURLConnection
extends java.net.URLConnection
| Constructor and Description |
|---|
PathURLConnection(java.net.URL url,
java.nio.file.Path path) |
| Modifier and Type | Method and Description |
|---|---|
void |
connect() |
long |
getContentLengthLong() |
java.lang.String |
getContentType() |
java.io.InputStream |
getInputStream() |
long |
getLastModified() |
java.io.OutputStream |
getOutputStream() |
addRequestProperty, getAllowUserInteraction, getConnectTimeout, getContent, getContent, getContentEncoding, getContentLength, getDate, getDefaultAllowUserInteraction, getDefaultRequestProperty, getDefaultUseCaches, getDoInput, getDoOutput, getExpiration, getFileNameMap, getHeaderField, getHeaderField, getHeaderFieldDate, getHeaderFieldInt, getHeaderFieldKey, getHeaderFieldLong, getHeaderFields, getIfModifiedSince, getPermission, getReadTimeout, getRequestProperties, getRequestProperty, getURL, getUseCaches, guessContentTypeFromName, guessContentTypeFromStream, setAllowUserInteraction, setConnectTimeout, setContentHandlerFactory, setDefaultAllowUserInteraction, setDefaultRequestProperty, setDefaultUseCaches, setDoInput, setDoOutput, setFileNameMap, setIfModifiedSince, setReadTimeout, setRequestProperty, setUseCaches, toStringpublic PathURLConnection(java.net.URL url,
java.nio.file.Path path)
public void connect()
throws java.io.IOException
connect in class java.net.URLConnectionjava.io.IOExceptionpublic long getContentLengthLong()
getContentLengthLong in class java.net.URLConnectionpublic java.io.InputStream getInputStream()
throws java.io.IOException
getInputStream in class java.net.URLConnectionjava.io.IOExceptionpublic java.io.OutputStream getOutputStream()
throws java.io.IOException
getOutputStream in class java.net.URLConnectionjava.io.IOExceptionpublic java.lang.String getContentType()
getContentType in class java.net.URLConnectionpublic long getLastModified()
getLastModified in class java.net.URLConnection