Microsoft SDK for Java

load

This method of the Document class contains the following signatures:

load(String urlstr)
load(URL url)
load(InputStream in)

load(String urlstr)

Loads the document from the given URL string.

Syntax

public void load(String urlstr) throws ParseException;

Parameters

urlstr The URL specifying the address of the document.

Exceptions

ParseException if the file contains errors.

load(URL url)

Loads the document from the given URL.

Syntax

public void load(URL url) throws ParseException;

Parameters

url The URL string.

Exceptions

ParseException if a syntax error is found.

load(InputStream in)

Loads the document using the given input stream. This is useful if you have the XML data already in memory.

Syntax

public void load(InputStream in) throws ParseException;

Parameters

in The input stream.

Exceptions

ParseException when a syntax error is found.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.