Class PathURLConnection
java.lang.Object
java.net.URLConnection
io.roastedroot.zerofs.PathURLConnection
URLConnection implementation.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Stringprivate static final Stringprivate InputStreamFields inherited from class URLConnection
allowUserInteraction, connected, doInput, doOutput, ifModifiedSince, url, useCaches -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconnect()static <T> TfirstNonNull(T first, T second) getHeaderField(String name) private static URIMethods inherited from class URLConnection
addRequestProperty, getAllowUserInteraction, getConnectTimeout, getContent, getContent, getContentEncoding, getContentLength, getContentLengthLong, getContentType, getDate, getDefaultAllowUserInteraction, getDefaultRequestProperty, getDefaultUseCaches, getDefaultUseCaches, getDoInput, getDoOutput, getExpiration, getFileNameMap, getHeaderField, getHeaderFieldDate, getHeaderFieldInt, getHeaderFieldKey, getHeaderFieldLong, 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
-
Field Details
-
HTTP_DATE_FORMAT
- See Also:
-
DEFAULT_CONTENT_TYPE
- See Also:
-
stream
-
headers
-
-
Constructor Details
-
PathURLConnection
PathURLConnection(URL url)
-
-
Method Details
-
firstNonNull
public static <T> T firstNonNull(T first, T second) -
connect
- Specified by:
connectin classURLConnection- Throws:
IOException
-
toUri
- Throws:
IOException
-
getInputStream
- Overrides:
getInputStreamin classURLConnection- Throws:
IOException
-
getHeaderFields
- Overrides:
getHeaderFieldsin classURLConnection
-
getHeaderField
- Overrides:
getHeaderFieldin classURLConnection
-