Class StatefulWriter

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private FastStack attributes  
      private int balance  
      private int state  
      static int STATE_CLOSED
      STATE_CLOSED is the state if the writer has been closed.
      static int STATE_NODE_END
      STATE_NODE_END is the state if a node has ended
      static int STATE_NODE_START
      STATE_NODE_START is the state of a new node has been started.
      static int STATE_OPEN
      STATE_OPEN is the initial value of the writer.
      static int STATE_VALUE
      STATE_VALUE is the state if the value of a node has been written.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addAttribute​(java.lang.String name, java.lang.String value)  
      private void checkClosed()  
      void close()
      Close the writer, if necessary.
      void endNode()  
      void flush()
      Flush the writer, if necessary.
      private java.lang.Object readResolve()  
      void setValue​(java.lang.String text)
      Write the value (text content) of the current node.
      void startNode​(java.lang.String name)  
      void startNode​(java.lang.String name, java.lang.Class clazz)  
      private void startNodeCommon()  
      int state()
      Retrieve the state of the writer.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait