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();
	}		  
}

@@ -671,15 +671,11 @@
 %09%09%09%0A
-%09
 %09  
-%0A%09%09
 // P
@@ -779,20 +779,16 @@
 %09%09%7B%0A%09%09  
-    
 switch (
@@ -799,20 +799,16 @@
 %09%09  
-    
 %7B%0A%09%09    
     
@@ -803,20 +803,16 @@
 %7B%0A%09%09    
-  
-  
 case 0:%0A
@@ -822,17 +822,16 @@
        %09
-%09
 fileName
@@ -857,24 +857,20 @@
    %09
-%09
 break;%0A
+%0A
 %09%09  
-    
 %7D%0A%09%09

Update ExodusIIWriter.java