import vtk.vtkNativeLibrary;
import vtk.vtkExodusIIWriter;
import vtk.vtkTimeSourceExample;

public class ExodusIIWriter 
{
	// -----------------------------------------------------------------
	// Load VTK library and print which library was not properly loaded
	static 
	{
		if (!vtkNativeLibrary.LoadAllNativeLibraries()) 
		{
			for (vtkNativeLibrary lib : vtkNativeLibrary.values()) 
			{
				if (!lib.IsLoaded()) 
				{
					System.out.println(lib.GetLibraryName() + " not loaded");
				}
			}
		}
		vtkNativeLibrary.DisableOutputWindow(null);
	}
	// -----------------------------------------------------------------
	
	public static void main(String args[]) 
	{					
	  // Provide default values.
		String fileName = "Output.exii";
		for(int i = 0; i < args.length; ++i)
		{
		  switch (i) 
		  {
		    case 0:
		        	fileName = args[i];
		        	break;

		  }
		}
		vtkTimeSourceExample TimeSource = new vtkTimeSourceExample();
		vtkExodusIIWriter ExodusWriter = new vtkExodusIIWriter();
		ExodusWriter.SetFileName(fileName);
		ExodusWriter.SetInputConnection(TimeSource.GetOutputPort());
		ExodusWriter.WriteAllTimeStepsOn();
		ExodusWriter.Write();
	}		  
}

@@ -117,17 +117,16 @@
 iter %0A%7B%0A
-%09
 // -----
@@ -186,17 +186,16 @@
 -------%0A
-%09
 // Load 
@@ -258,17 +258,16 @@
 ded%0A
-%09
 static %0A
 %09%7B%0A%09
@@ -262,21 +262,20 @@
 static %0A
-%09
 %7B%0A
-%09%09
+  
 if (!vtk
@@ -315,23 +315,24 @@
 ies()) %0A
-%09%09%7B%0A%09%09%09
+  %7B%0A    
 for (vtk
@@ -379,25 +379,28 @@
 ues()) %0A
-%09%09%09%7B%0A%09%09%09%09
+    %7B%0A      
 if (!lib
@@ -417,19 +417,25 @@
 )) %0A
-%09%09%09%09%7B%0A%09%09%09%09%09
+      %7B %0A        
 Syst
@@ -492,25 +492,28 @@
 %22);%0A
-%09%09%09%09%7D%0A%09%09%09%7D%0A%09%09%7D%0A%09%09
+      %7D%0A    %7D%0A  %7D%0A  
 vtkN
@@ -552,20 +552,18 @@
 (null);%0A
-%09
 %7D%0A
-%09
 // -----
@@ -625,17 +625,16 @@
 -----%0A%09%0A
-%09
 public s
@@ -669,17 +669,15 @@
 %5D) %0A
-%09
 %7B%09%09%09%09%09%0A
-%09
   //
@@ -701,18 +701,18 @@
 values.%0A
-%09%09
+  
 String f
@@ -736,18 +736,18 @@
 .exii%22;%0A
-%09%09
+  
 for(int 
@@ -779,14 +779,14 @@
 +i)%0A
-%09%09%7B%0A%09%09
+  %7B%0A  
   sw
@@ -799,16 +799,16 @@
 i) %0A
-%09%09
+ 
   
+ 
 %7B%0A
-%09%09
+  
     
@@ -815,27 +815,22 @@
 case 0:%0A
-%09%09
       
-  %09
 fileName
@@ -845,27 +845,22 @@
 i%5D;%0A
-%09%09
       
-  %09
 break;%0A%0A
 %09%09  
@@ -859,20 +859,20 @@
 k;%0A%0A
-%09%09
+  
   %7D%0A
-%09%09%7D%0A%09%09
+  %7D%0A  
 vtkT
@@ -929,18 +929,18 @@
 mple();%0A
-%09%09
+  
 vtkExodu
@@ -985,26 +985,26 @@
 IIWriter();%0A
-%09%09
+  
 ExodusWriter
@@ -1027,18 +1027,18 @@
 eName);%0A
-%09%09
+  
 ExodusWr
@@ -1090,18 +1090,18 @@
 ort());%0A
-%09%09
+  
 ExodusWr
@@ -1128,18 +1128,18 @@
 psOn();%0A
-%09%09
+  
 ExodusWr
@@ -1152,17 +1152,17 @@
 rite();%0A
-%09
+ 
 %7D%09%09  %0A%7D%0A

Update ExodusIIWriter.java