net.groboclown.xml.xdstates.v1.tests
Class StatesPropertyWriter

java.lang.Object
  |
  +--net.groboclown.xml.xdstates.v1.tests.StatesPropertyWriter
All Implemented Interfaces:
Runnable

public class StatesPropertyWriter
extends Object
implements Runnable

Version:
Alpha 0.9.0 - JDK 1.2+
Author:
Matt Albrecht

Field Summary
private static Class DEFAULT_CLASS
           
private  IStateIterator it
           
private static String TAIL_NAME
           
private  IStatesPropertyWriter writer
           
 
Constructor Summary
StatesPropertyWriter(String basePropertyFileName, String classname, IStateIterator it)
           
 
Method Summary
static StatesPropertyWriter createWriterFromFile(String name, String basePropertyFileName, String classname)
           
static StatesPropertyWriter createWriterFromResource(String name, String basePropertyFileName, String classname)
           
static StatesPropertyWriter createWriterFromURL(String name, String basePropertyFileName, String classname)
           
static void main(String[] args)
          The entry point for a Java application
 void run()
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

it

private IStateIterator it

writer

private IStatesPropertyWriter writer

TAIL_NAME

private static final String TAIL_NAME

DEFAULT_CLASS

private static final Class DEFAULT_CLASS
Constructor Detail

StatesPropertyWriter

public StatesPropertyWriter(String basePropertyFileName,
                            String classname,
                            IStateIterator it)
                     throws IOException
Method Detail

createWriterFromResource

public static StatesPropertyWriter createWriterFromResource(String name,
                                                            String basePropertyFileName,
                                                            String classname)
                                                     throws Exception

createWriterFromFile

public static StatesPropertyWriter createWriterFromFile(String name,
                                                        String basePropertyFileName,
                                                        String classname)
                                                 throws Exception

createWriterFromURL

public static StatesPropertyWriter createWriterFromURL(String name,
                                                       String basePropertyFileName,
                                                       String classname)
                                                throws Exception

main

public static void main(String[] args)
                 throws Exception
The entry point for a Java application
Parameters:
args - the command-line arguments.

run

public void run()
Specified by:
run in interface Runnable


Written under the LGPL