com.ephox.editlive.http.manager.text
Interface HttpTextManager


public interface HttpTextManager

Text Download manager. Instance available via HttpManagerFactory.

Since:
7.5

Method Summary
 String getString(URL url)
          Downloads plain text from the specified URL.
 String getXMLString(URL url)
          Downloads an XML file.
 

Method Detail

getString

String getString(URL url)
Downloads plain text from the specified URL. The character set reported by the server is used to create the String, or UTF-8 if none is reported.

Parameters:
url - the URL to download from.
Returns:
the text downloaded or null if downloading fails.

getXMLString

String getXMLString(URL url)
Downloads an XML file. Uses the character set of the returned XML document to create the String, or UTF-8 if one is not specified.

Parameters:
url - the URL to download from.
Returns:
the content as a String or null if the file could not be downloaded.

Copyright (c) 2005-2012 Ephox Pty Ltd. All rights reserved.