public class URLUtil extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
URL_END |
static String |
URL_START |
| Constructor and Description |
|---|
URLUtil() |
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
getData(String url,
String encoding)
Returns the data pointed at by a URL as a byte array.
|
static String |
getDataEncoding(String url)
Returns the data pointed at by a URL as a byte array.
|
static String |
getURL(String message) |
static boolean |
isURL(String message) |
public static final String URL_START
public static final String URL_END
public static byte[] getData(String url, String encoding) throws IOException
url - the URLencoding - the encoding to use for converting text content to binary contentIOException - if an I/O error occurspublic static String getDataEncoding(String url)
url - the URLpublic static boolean isURL(String message)
Copyright © 2003–2023. All rights reserved.