Class InputStreamURLStreamHandler
java.lang.Object
java.net.URLStreamHandler
org.exoplatform.services.resources.InputStreamURLStreamHandler
An URLStreamHandler extension that use a local
InputStream object. This object will always use the stream
provided and nothing else. So the life time of an instance is very limited.-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.net.URLStreamHandler
equals, getDefaultPort, getHostAddress, hashCode, hostsEqual, openConnection, parseURL, sameFile, setURL, setURL, toExternalForm
-
Constructor Details
-
InputStreamURLStreamHandler
Creates a new handler.- Parameters:
in- the input stream- Throws:
IllegalArgumentException- if the stream is null
-
-
Method Details
-
openConnection
- Specified by:
openConnectionin classURLStreamHandler- Throws:
IOException
-