wt.util
Class ObjectFileSerializer

java.lang.Object
  extended bywt.util.ObjectFileSerializer

public class ObjectFileSerializer
extends Object


Constructor Summary
protected ObjectFileSerializer()
           
 
Method Summary
private static String fileName(String classname, String rootDir, Locale locale, String fileExtension)
           
private static ObjectOutputStream open(String fileName)
           
static void write(Object target, String classname, String rootDir)
           
static void write(Object target, String classname, String rootDir, Locale locale)
           
static void write(Object target, String classname, String rootDir, Locale locale, String fileExtension)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectFileSerializer

protected ObjectFileSerializer()
Method Detail

fileName

private static String fileName(String classname,
                               String rootDir,
                               Locale locale,
                               String fileExtension)

open

private static ObjectOutputStream open(String fileName)
                                throws IOException
Throws:
IOException

write

public static void write(Object target,
                         String classname,
                         String rootDir)
                  throws FileNotFoundException,
                         IOException
Throws:
FileNotFoundException
IOException

write

public static void write(Object target,
                         String classname,
                         String rootDir,
                         Locale locale)
                  throws FileNotFoundException,
                         IOException
Throws:
FileNotFoundException
IOException

write

public static void write(Object target,
                         String classname,
                         String rootDir,
                         Locale locale,
                         String fileExtension)
                  throws FileNotFoundException,
                         IOException
Throws:
FileNotFoundException
IOException