PkgAgentSystem
Class AMPStreamHandlerFactory
java.lang.Object
|
+--PkgAgentSystem.AMPStreamHandlerFactory
- All Implemented Interfaces:
- URLStreamHandlerFactory
- public class AMPStreamHandlerFactory
- extends Object
- implements URLStreamHandlerFactory
Factory for creating AMPStreamHandlers
for the amp-protocol.
This class implements the interface URLStreamHandlerFactory
.
- Version:
- 1.0, 1.7.2000
- Author:
- Michael Sonntag
- See Also:
URL
,
URLStreamHandler
,
URLStreamHandlerFactory
,
AMPStreamHandler
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AMPStreamHandlerFactory
public AMPStreamHandlerFactory()
createURLStreamHandler
public URLStreamHandler createURLStreamHandler(String protocol)
- Implementation of interface ULRStreamHandlerFactory.
Creates a new
AMPStreamHandler
instance, if the specified
protocol equals "amp". If protocol is other, returns null. (Default handler will then
be used by the class URL
)
- Specified by:
createURLStreamHandler
in interface URLStreamHandlerFactory
- Parameters:
protocol
- the protocol (must be "amp
", case-insensitive)- Returns:
- a
AMPLStreamHandler
if the protocol equals "amp", otherwise null - See Also:
URLStreamHandler
,
AMPStreamHandler
Submit a bug
Copyright 2001,2002 Michael Sonntag & Institute for Information Processing and Microprocessor Technology (FIM), Johannes-Kepler-University Linz, Altenbergerstr. 69, A-4040 Linz, Austria.