Class PublisherUtils

java.lang.Object
com.netscape.cms.publish.publishers.PublisherUtils

public class PublisherUtils extends Object
Publisher utility class.
Version:
$Revision$, $Date$
  • Constructor Details

    • PublisherUtils

      public PublisherUtils()
  • Method Details

    • checkHost

      public static void checkHost(String hostname) throws UnknownHostException
      Throws:
      UnknownHostException
    • copyStream

      public static void copyStream(InputStream in, OutputStream out) throws IOException
      Throws:
      IOException
    • copyStream

      public static void copyStream(BufferedReader in, OutputStreamWriter out) throws IOException
      Throws:
      IOException
    • sortStrings

      public static void sortStrings(String[] strings)
    • lsDateStr

      public static String lsDateStr(Date date)
    • byteArraysAreEqual

      public static boolean byteArraysAreEqual(byte[] a, byte[] b)
      compares contents two byte arrays returning true if exactly same.
    • stripQuotes

      public static String stripQuotes(String s)
      strips out double quotes around String parameter
      Parameters:
      s - the string potentially bracketed with double quotes
      Returns:
      string stripped of surrounding double quotes
    • getStringArrayFromVector

      public static String[] getStringArrayFromVector(Vector<String> v)
      returns an array of strings from a vector of Strings there'll be trouble if the Vector contains something other than just Strings