All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.simpleframework.xml.stream.NodeStack Maven / Gradle / Ivy

Go to download

Simple is a high performance XML serialization and configuration framework for Java

The newest version!
/*
 * NodeStack.java January 2010
 *
 * Copyright (C) 2010, Niall Gallagher 
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 
 * implied. See the License for the specific language governing 
 * permissions and limitations under the License.
 */

package org.simpleframework.xml.stream;

import org.w3c.dom.Node;

/**
 * The NodeStack object is used to represent a stack
 * of DOM nodes. Stacking DOM nodes is required to determine where
 * within a stream of nodes you currently are. It allows a reader
 * to produce end events when a node is popped from the stack.
 * 
 * @author Niall Gallagher
 *
 * @see org.simpleframework.xml.stream.DocumentReader
 */
class NodeStack extends Stack{

   /**
    * Constructor for the NodeStack object. This will
    * create a stack for holding DOM nodes. To ensure that the
    * initial size is enough to cope with typical XML documents it
    * is set large enough to cope with reasonably deep elements.
    */
   public NodeStack() {
      super(6);
   }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy