public class MBJSONPersistencer extends MBPersistencer
| Constructor and Description |
|---|
MBJSONPersistencer(boolean pretty) |
| Modifier and Type | Method and Description |
|---|---|
MBBundles |
load(File source) |
MBBundles |
load(InputStream in) |
MBBundles |
load(Reader reader) |
void |
save(MBBundles object,
File file) |
void |
saveObject(Object obj,
File target) |
void |
saveString(String json,
File target) |
MBPersistencer |
withOptions(String options) |
public MBPersistencer withOptions(String options)
withOptions in class MBPersistencerpublic void save(MBBundles object, File file) throws Exception
save in class MBPersistencerExceptionpublic void saveString(String json, File target) throws IOException
IOExceptionpublic MBBundles load(File source) throws IOException, ClassNotFoundException
load in class MBPersistencerIOExceptionClassNotFoundExceptionpublic MBBundles load(Reader reader) throws IOException, ClassNotFoundException
IOExceptionClassNotFoundExceptionpublic MBBundles load(InputStream in) throws IOException, ClassNotFoundException
load in class MBPersistencerIOExceptionClassNotFoundExceptionCopyright © 2017. All rights reserved.