de.viaboxx.nlstools.formats
Class MBJSONPersistencer

java.lang.Object
  extended by de.viaboxx.nlstools.formats.MBPersistencer
      extended by de.viaboxx.nlstools.formats.MBJSONPersistencer

public class MBJSONPersistencer
extends MBPersistencer

Description: Load/Save JSON Format with XStream
User: roman.stumm
Date: 14.06.2007
Time: 15:29:50
Copyright: Viaboxx GmbH


Constructor Summary
MBJSONPersistencer(boolean pretty)
           
 
Method Summary
 MBBundles load(File source)
           
 MBBundles load(InputStream in)
           
 MBBundles load(Reader reader)
           
 void save(MBBundles object, File file)
           
 void saveObject(Object obj, File target)
           
 
Methods inherited from class de.viaboxx.nlstools.formats.MBPersistencer
forFile, forFile, forURL, loadFile, mkdirs, saveFile
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MBJSONPersistencer

public MBJSONPersistencer(boolean pretty)
Method Detail

save

public void save(MBBundles object,
                 File file)
          throws Exception
Specified by:
save in class MBPersistencer
Throws:
Exception

saveObject

public void saveObject(Object obj,
                       File target)
                throws Exception
Throws:
Exception

load

public MBBundles load(File source)
               throws IOException,
                      ClassNotFoundException
Specified by:
load in class MBPersistencer
Throws:
IOException
ClassNotFoundException

load

public MBBundles load(Reader reader)
               throws IOException,
                      ClassNotFoundException
Throws:
IOException
ClassNotFoundException

load

public MBBundles load(InputStream in)
               throws IOException,
                      ClassNotFoundException
Specified by:
load in class MBPersistencer
Throws:
IOException
ClassNotFoundException


Copyright © 2013. All Rights Reserved.