if (SAXUtils.isWhitespaceCharacters(characters, start, length)) {
return;
}
throw new ExtendedSAXParseException("Unexpected characters '" +
new String(characters, start, length) + "'",
marlinContext.getLocator());
}
// Get the current request context
MarinerRequestContext requestContext = context.getRequestContext();
PAPIElement element = elementStackEntry.element;
PAPIAttributes attributes = elementStackEntry.attributes;
try {
// Get the content writer for the element.
Writer writer = element.getContentWriter(requestContext, attributes);
// Write the content out to the body of the element.
writer.write(characters, start, length);
} catch (PAPIException e) {
throw new ExtendedSAXParseException(null, marlinContext.getLocator(), e);
} catch (IOException e) {
throw new ExtendedSAXParseException(null, marlinContext.getLocator(), e);
}
}