hivemind-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject RE: non-File based configuration
Date Sat, 09 Apr 2005 03:42:25 GMT
???  It's really simple matter.

The URLStreamHandler subclass only requires implementing the
openConnection() method.  This returns your implementation of the
URLConnection.  This subclass only really has to implement the
getInputStream() method.

So you end up with something like the attached example and usage like:

FilterInputStream is = ....;  // your encrypted filter input stream
URL url = new URL(null, "file://doesnotmatteratall", new MyUrlHandler(is));
builder.addModuleDescriptorProvider(new XmlModuleDescriptorProvider(url));
View raw message