Class DepthRestrictingStreamReader

All Implemented Interfaces:
XMLStreamConstants, XMLStreamReader

public class DepthRestrictingStreamReader extends DepthXMLStreamReader
XMLStreamReader implementation which can be used to enforce a number of depth-restricting policies. The following properties are currently supported: - total number of elements in the document - the maximum depth of the given element; the root element will be checked by default - the maximum number of immediate child nodes for individual elements More sophisticated policies can be supported in the future.