public class Utility extends Object
Constructor and Description |
---|
Utility() |
Modifier and Type | Method and Description |
---|---|
static String |
getDate() |
static String |
getDateTime()
Get the current date time.
|
static String |
toISO8601(String timestamp)
Converts a datetime string into an ISO 8601 format.
|
static URL |
toURL(String s)
Convert a string to a URL.
|
static String |
toWellFormedURI(String s)
Convert a string to a URI.
|
static String |
toXML(gov.nasa.pds.registry.model.ExtrinsicObject extrinsic)
Convert the ExtrinsicObject into an XML.
|
public static URL toURL(String s) throws MalformedURLException
s
- The string to convertMalformedURLException
public static String toWellFormedURI(String s)
s
- The string to convert.public static String getDateTime()
public static String getDate()
public static String toXML(gov.nasa.pds.registry.model.ExtrinsicObject extrinsic) throws JAXBException
extrinsic
- The ExtrinsicObject.JAXBException
- If there was an error marshalling the given
object.public static String toISO8601(String timestamp) throws ParseException
timestamp
- A timestamp string value.ParseException
Copyright © 2010–2016 Planetary Data System. All rights reserved.