public class ByteArrayURLStreamHandler
extends java.net.URLStreamHandler
URLStreamHandler which opens an URLConnection to a byte array.| Constructor and Description |
|---|
ByteArrayURLStreamHandler(byte[] data) |
| Modifier and Type | Method and Description |
|---|---|
static java.net.URL |
makeURL(java.lang.String file,
byte[] data)
Make an url which has an
URLConnection to the given byte array. |
protected java.net.URLConnection |
openConnection(java.net.URL u) |
public static java.net.URL makeURL(java.lang.String file,
byte[] data)
URLConnection to the given byte array.file - The file name of the urldata - The byte array to open the connection toprotected java.net.URLConnection openConnection(java.net.URL u)
openConnection in class java.net.URLStreamHandler