Back: Namespace-printing Up: Base classes Forward: NetClients.URIResolver class-api   Top: GNU Smalltalk Library Reference Contents: Table of Contents Index: Class index About: About this document

1.111 NetClients.URIResolver

Defined in namespace Smalltalk.NetClients
Superclass: Object
Category: NetClients-URIResolver

This class publishes methods to download files from the Internet.

1.111.1 NetClients.URIResolver class: api  (class)
1.111.2 NetClients.URIResolver class: instance creation  (class)


1.111.1 NetClients.URIResolver class: api

openOn: aURI
Always raise an error, as this method is not supported without loading the additional NetClients package.

openOn: aURI ifFail: aBlock
Always evaluate aBlock and answer the result if the additional NetClients package is not loaded. If it is, instead, return a WebEntity with the contents of the resource specified by anURI, and only evaluate the block if loading the resource fails.

openStreamOn: aURI
Check if aURI can be fetched from the Internet or from the local system, and if so return a Stream with its contents. If this is not possible, raise an exception.

openStreamOn: aURI ifFail: aBlock
Check if aURI can be fetched from the Internet or from the local system, and if so return a Stream with its contents. If this is not possible, instead, evaluate the zero-argument block aBlock and answer the result of the evaluation.


1.111.2 NetClients.URIResolver class: instance creation

on: anURL
Answer a new URIResolver that will do its best to fetch the data for anURL from the Internet.



Back: NetClients.URIResolver class-api Up: NetClients.URIResolver Forward: NetClients.URL   Top: GNU Smalltalk Library Reference Contents: Table of Contents Index: Class index About: About this document


This document was generated on May, 22 2008 using texi2html