Class WebUtil

java.lang.Object
org.serviceconnector.web.WebUtil

public final class WebUtil extends Object
The Class WebUtil.
  • Field Details

  • Method Details

    • loadResource

      public static InputStream loadResource(String name)
      Load resource.
      Parameters:
      name - the name
      Returns:
      the input stream
    • getResourceSize

      public static long getResourceSize(String name)
      get size of resource.
      Parameters:
      name - the name
      Returns:
      the size
    • getResourceURL

      public static URL getResourceURL(String name)
      Gets the resource url.
      Parameters:
      name - the name
      Returns:
      the resource url
    • getXMLDateAsString

      public static String getXMLDateAsString(Date date)
      Gets the xML date as string.
      Parameters:
      date - the date
      Returns:
      the xML date as string
    • getXMLDateFromString

      public static Date getXMLDateFromString(String date)
      Gets the xML date from string.
      Parameters:
      date - the date
      Returns:
      the xML date from string
    • getXMLNextDateAsString

      public static String getXMLNextDateAsString(Date date)
      Gets the xML next date as string.
      Parameters:
      date - the date
      Returns:
      the xML next date as string
    • getXMLPreviousDateAsString

      public static String getXMLPreviousDateAsString(Date date)
      Gets the xML previous date as string.
      Parameters:
      date - the date
      Returns:
      the xML previous date as string