// ----------------------------------------
try {
logger.logMessage("Opening file "+file.getPath()+" for reading.", this, MessageLogger.DEBUG);
in = new FileInputStream(file);
InputStreamReader reader = new InputStreamReader(in, charsetName);
chopper = new XMLChopper(reader, chopDepth);
}
catch(UnsupportedEncodingException uee) {
logger.logMessage("Unsupported encoding: " + charsetName, this, MessageLogger.ERROR);
return ITERATION_OPEN_STATUS_ERROR;
}