View Javadoc
1   package com.atlassian.dbexporter.node;
2   
3   import java.io.Closeable;
4   
5   /**
6    * @author Erik van Zijst
7    */
8   public interface NodeStreamWriter extends Closeable {
9   
10      /**
11       * Creates the root node for the graph. This method can be called only
12       * once.
13       *
14       * @throws IllegalStateException when this method is called more than once.
15       */
16      NodeCreator addRootNode(String name) throws IllegalStateException;
17  
18      void flush();
19  
20      void close();
21  }