//#endif
final String[] nitemArrayData = new String[itemArrayData.length];
if (sencoded) {
for (int ic = 0; ic < itemArrayData.length; ic++) {
// Base64 decode
Base64 b64 = new Base64();
byte[] decodedData = b64.decode(itemArrayData[ic]);
try {
nitemArrayData[ic] = new String( decodedData, "UTF-8" );
} catch (UnsupportedEncodingException e) {
nitemArrayData[ic] = new String( decodedData );
}
}
nodes[itemsOff] = StringUtil.join(nitemArrayData, RssFeed.CTWO, 0);
nodes[itemsOff] = nodes[itemsOff].replace('|', RssFeed.CTHREE);
} else {
//#ifdef DTEST
lngStart = System.currentTimeMillis();
//#endif
for (int ic = 0; ic < itemArrayData.length; ic++) {
// Base64 decode
Base64 b64 = new Base64();
String data;
try {
nitemArrayData[ic] = b64.encode(
itemArrayData[ic].getBytes("UTF-8") );
} catch (UnsupportedEncodingException e) {
nitemArrayData[ic] = b64.encode(
itemArrayData[ic].getBytes() );
}
}
//#ifdef DTEST
encodeTime += System.currentTimeMillis() - lngStart;