Home > Contents > Index > 
Expanded TOC | Accordion TOC | Annotated TOC | Index 
Utilities.readURL
Reads the passed URL, and returns its contents as a string.
Syntax
public static final String readURL(String url)Parameters
url- The URL to read, for example,
 "http://www.fatwire.com/".
Description
The
readURLmethod reads the passed URL, and returns its contents as a string. This method strips out characters returned byCharacter.isIdentifierIgnorable().Returns
The contents of the URL in a string, or null.
Example
The following code writes the contents of
www.fatwire.cominto variablestrURL:
String strURL = Utilities.readURL("http://www.fatwire.com/");See Also
readByteFile
Home > Contents > Index > ![]()
FatWire JAVA Reference
Copyright 2005,2006,2007 by FatWire Software
All rights reserved.