@Component public class BlockPersister extends Unmarshaller.Listener
| Modifier and Type | Field and Description |
|---|---|
static BlockPersister |
instance |
| Constructor and Description |
|---|
BlockPersister(Set<Block> blocks) |
| Modifier and Type | Method and Description |
|---|---|
void |
afterUnmarshal(Object target,
Object parent) |
Block |
load(InputStream inputStream) |
SchemaModel |
load(Path path) |
void |
save(Block block,
StreamResult streamResult) |
void |
save(SchemaModel schemaModel,
Path path) |
String |
toString() |
beforeUnmarshalpublic static BlockPersister instance
public void save(Block block, StreamResult streamResult) throws IOException
IOExceptionpublic Block load(InputStream inputStream) throws IOException
IOExceptionpublic void save(SchemaModel schemaModel, Path path) throws IOException
IOExceptionpublic SchemaModel load(Path path) throws IOException
IOExceptionpublic void afterUnmarshal(Object target, Object parent)
afterUnmarshal in class Unmarshaller.ListenerCopyright © 2012–2015 MARID software development group. All rights reserved.