Package com.mku.salmon.service
Class SalmonStreamHandler
java.lang.Object
java.net.URLStreamHandler
com.mku.salmon.service.SalmonStreamHandler
Provides a local stream handler to read a
SalmonFile
as a source to apps that cannot use SalmonFileInputStream
directly.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic SalmonStreamHandler
protected URLConnection
Open a local SalmonStreamConnectionvoid
register
(String path, IVirtualFile file) void
unregister
(String path) Methods inherited from class java.net.URLStreamHandler
equals, getDefaultPort, getHostAddress, hashCode, hostsEqual, openConnection, parseURL, sameFile, setURL, setURL, toExternalForm
-
Constructor Details
-
SalmonStreamHandler
public SalmonStreamHandler()
-
-
Method Details
-
getInstance
-
register
-
unregister
-
openConnection
Open a local SalmonStreamConnection- Specified by:
openConnection
in classURLStreamHandler
- Parameters:
u
- the URL that this connects to.- Returns:
- URLConnection to inject the decoded stream
-