barcode4j 2.1.0

org.krysalis.barcode4j.tools
Class URLUtil

java.lang.Object
  extended by org.krysalis.barcode4j.tools.URLUtil

public class URLUtil
extends java.lang.Object

Utility functions for handling URLs.


Field Summary
static java.lang.String URL_END
           
static java.lang.String URL_START
           
 
Constructor Summary
URLUtil()
           
 
Method Summary
static byte[] getData(java.lang.String url, java.lang.String encoding)
          Returns the data pointed at by a URL as a byte array.
static java.lang.String getURL(java.lang.String message)
           
static boolean isURL(java.lang.String message)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

URL_START

public static final java.lang.String URL_START
See Also:
Constant Field Values

URL_END

public static final java.lang.String URL_END
See Also:
Constant Field Values
Constructor Detail

URLUtil

public URLUtil()
Method Detail

getData

public static byte[] getData(java.lang.String url,
                             java.lang.String encoding)
                      throws java.io.IOException
Returns the data pointed at by a URL as a byte array.

Parameters:
url - the URL
encoding - the encoding to use for converting text content to binary content
Returns:
the data as a byte array
Throws:
java.io.IOException - if an I/O error occurs

isURL

public static boolean isURL(java.lang.String message)

getURL

public static java.lang.String getURL(java.lang.String message)

barcode4j 2.1.0

Copyright © 2000-2010 Jeremias Maerki. All rights reserved.