net.quartzware
Class JavaIO

java.lang.Object
  |
  +--net.quartzware.JavaIO
All Implemented Interfaces:
RBReader, RBWriter

public class JavaIO
extends java.lang.Object
implements RBReader, RBWriter

JavaIO is a class which is able to both read to and from .java resource bundle files. It uses the ListResourceBundle class.


Constructor Summary
JavaIO()
           
 
Method Summary
 ResBundle readBundle(java.io.File file)
          Reads the File pointed to by file and returns a ResBundle
 void writeBundle(ResBundle rb, java.io.File file)
          Writes the resource bundle out to the file
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaIO

public JavaIO()
Method Detail

readBundle

public ResBundle readBundle(java.io.File file)
Reads the File pointed to by file and returns a ResBundle
Specified by:
readBundle in interface RBReader
Parameters:
file - Where to read this bundle from
Returns:
a ResBundle created from the file pointed to by file

writeBundle

public void writeBundle(ResBundle rb,
                        java.io.File file)
Writes the resource bundle out to the file
Specified by:
writeBundle in interface RBWriter
Parameters:
rb - the bundle to write out.
file - where to write out the bundle to.