Class PublisherUtils
java.lang.Object
com.netscape.cms.publish.publishers.PublisherUtils
Publisher utility class.
- Version:
- $Revision$, $Date$
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
byteArraysAreEqual
(byte[] a, byte[] b) compares contents two byte arrays returning true if exactly same.static void
static void
copyStream
(BufferedReader in, OutputStreamWriter out) static void
copyStream
(InputStream in, OutputStream out) static String[]
returns an array of strings from a vector of Strings there'll be trouble if the Vector contains something other than just Stringsstatic String
static void
sortStrings
(String[] strings) static String
strips out double quotes around String parameter
-
Constructor Details
-
PublisherUtils
public PublisherUtils()
-
-
Method Details
-
checkHost
- Throws:
UnknownHostException
-
copyStream
- Throws:
IOException
-
copyStream
- Throws:
IOException
-
sortStrings
-
lsDateStr
-
byteArraysAreEqual
public static boolean byteArraysAreEqual(byte[] a, byte[] b) compares contents two byte arrays returning true if exactly same. -
stripQuotes
strips out double quotes around String parameter- Parameters:
s
- the string potentially bracketed with double quotes- Returns:
- string stripped of surrounding double quotes
-
getStringArrayFromVector
returns an array of strings from a vector of Strings there'll be trouble if the Vector contains something other than just Strings
-