org.gedcomx.rt
Class DataURIUtil

java.lang.Object
  extended by org.gedcomx.rt.DataURIUtil

public class DataURIUtil
extends Object

Utilities for encoding, decoding data URIs.

Author:
Ryan Heaton
See Also:
RFC 2397

Method Summary
static URI encodeDataURI(String text)
          Encode custom text as a data URI.
static String getValueAsString(URI uri)
          Get the string data from the specified URI.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getValueAsString

public static String getValueAsString(URI uri)
Get the string data from the specified URI.

Parameters:
uri - the URI.
Returns:
The string form of the data, or null if the data URI doesn't contain a string.

encodeDataURI

public static URI encodeDataURI(String text)
Encode custom text as a data URI.

Parameters:
text - The text to encode.
Returns:
The URI.


Copyright © 2016. All rights reserved.