Class PublisherUtils
java.lang.Object
com.netscape.cms.publish.publishers.PublisherUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanbyteArraysAreEqual(byte[] a, byte[] b) compares contents two byte arrays returning true if exactly same.static voidstatic voidcopyStream(BufferedReader in, OutputStreamWriter out) static voidcopyStream(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 StringReturns a date string formatted in Unix ls style - if it's withinstatic voidsortStrings(String[] strings) Sorts an array of Strings.static Stringstrips out double quotes around String parameter
-
Constructor Details
-
PublisherUtils
public PublisherUtils()
-
-
Method Details
-
checkHost
- Throws:
UnknownHostException
-
copyStream
- Throws:
IOException
-
copyStream
- Throws:
IOException
-
sortStrings
Sorts an array of Strings. -
lsDateStr
-
byteArraysAreEqual
public static boolean byteArraysAreEqual(byte[] a, byte[] b) compares contents two byte arrays returning true if exactly same. -
stripQuotes
-
getStringArrayFromVector
-