Package net.bytebuddy.dynamic.loading
Class ByteArrayClassLoader.PersistenceHandler.UrlDefinitionAction.ByteArrayUrlStreamHandler.ByteArrayUrlConnection
java.lang.Object
java.net.URLConnection
net.bytebuddy.dynamic.loading.ByteArrayClassLoader.PersistenceHandler.UrlDefinitionAction.ByteArrayUrlStreamHandler.ByteArrayUrlConnection
- Enclosing class:
ByteArrayClassLoader.PersistenceHandler.UrlDefinitionAction.ByteArrayUrlStreamHandler
protected static class ByteArrayClassLoader.PersistenceHandler.UrlDefinitionAction.ByteArrayUrlStreamHandler.ByteArrayUrlConnection
extends URLConnection
A URL connection for a given byte array.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final InputStream
The input stream to return for this connection.Fields inherited from class java.net.URLConnection
allowUserInteraction, connected, doInput, doOutput, ifModifiedSince, url, useCaches
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
ByteArrayUrlConnection
(URL url, InputStream inputStream) Creates a new byte array URL connection. -
Method Summary
Methods inherited from class java.net.URLConnection
addRequestProperty, getAllowUserInteraction, getConnectTimeout, getContent, getContent, getContentEncoding, getContentLength, getContentLengthLong, getContentType, 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
-
Field Details
-
inputStream
The input stream to return for this connection.
-
-
Constructor Details
-
ByteArrayUrlConnection
Creates a new byte array URL connection.- Parameters:
url
- The URL that this connection represents.inputStream
- The input stream to return from this connection.
-
-
Method Details
-
connect
public void connect()- Specified by:
connect
in classURLConnection
-
getInputStream
- Overrides:
getInputStream
in classURLConnection
-