checkGZIP(InputStream is) This is a utility function others can call that checks if
is is a GZIP stream if so it returns a GZIPInputStream that
will decode the contents, otherwise it returns (or a
buffered version of is) untouched.
public boolean
complete() Returns true if the URL looks well formed and complete.
public boolean
equals(Object obj) Implement Object.equals for ParsedURLData.
Since the Data instance is 'hidden' in the ParsedURL
instance we make all our methods public. This makes it
easy for the various Protocol Handlers to update an
instance as parsing proceeds.
This is a utility function others can call that checks if
is is a GZIP stream if so it returns a GZIPInputStream that
will decode the contents, otherwise it returns (or a
buffered version of is) untouched.
Parameters: is - Stream that may potentially be a GZIP stream.
Returns true if the URL looks well formed and complete.
This does not garuntee that the stream can be opened but
is a good indication that things aren't totally messed up.
Open the stream and check for common compression types. If
the stream is found to be compressed with a standard
compression type it is automatically decompressed.
Parameters: userAgent - The user agent opening the stream (may be null). Parameters: mimeTypes - The expected mime types of the content in the returned InputStream (mapped to Http acceptheader among other possability). The elements ofthe iterator must be strings (may be null)
Open the stream and returns it. No checks are made to see
if the stream is compressed or encoded in any way.
Parameters: userAgent - The user agent opening the stream (may be null). Parameters: mimeTypes - The expected mime types of the content in the returned InputStream (mapped to Http acceptheader among other possability). The elements ofthe iterator must be strings (may be null)