Package net.bytebuddy.dynamic.loading
Class ByteArrayClassLoader.PersistenceHandler.UrlDefinitionAction.ByteArrayUrlStreamHandler
java.lang.Object
java.net.URLStreamHandler
net.bytebuddy.dynamic.loading.ByteArrayClassLoader.PersistenceHandler.UrlDefinitionAction.ByteArrayUrlStreamHandler
- Enclosing class:
- ByteArrayClassLoader.PersistenceHandler.UrlDefinitionAction
@Enhance
protected static class ByteArrayClassLoader.PersistenceHandler.UrlDefinitionAction.ByteArrayUrlStreamHandler
extends URLStreamHandler
A stream handler that returns the given binary representation.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static class
A URL connection for a given byte array. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final byte[]
The binary representation of a type's class file. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
ByteArrayUrlStreamHandler
(byte[] binaryRepresentation) Creates a new byte array URL stream handler. -
Method Summary
Methods inherited from class java.net.URLStreamHandler
equals, getDefaultPort, getHostAddress, hashCode, hostsEqual, openConnection, parseURL, sameFile, setURL, setURL, toExternalForm
-
Field Details
-
binaryRepresentation
private final byte[] binaryRepresentationThe binary representation of a type's class file.
-
-
Constructor Details
-
ByteArrayUrlStreamHandler
protected ByteArrayUrlStreamHandler(byte[] binaryRepresentation) Creates a new byte array URL stream handler.- Parameters:
binaryRepresentation
- The binary representation of a type's class file.
-
-
Method Details
-
openConnection
- Specified by:
openConnection
in classURLStreamHandler
-