public abstract class JAXBGate<B>
extends java.lang.Object
Constructor and Description |
---|
JAXBGate(java.nio.file.Path file) |
JAXBGate(java.nio.file.Path file,
java.lang.Class<B> bufferClass) |
Modifier and Type | Method and Description |
---|---|
protected abstract B |
createBuffer() |
java.nio.file.Path |
getFile() |
protected javax.xml.bind.JAXBContext |
getJaxbContext() |
void |
load(java.nio.file.Path file) |
void |
loadBuffer() |
protected abstract void |
readBuffer(B buffer) |
void |
save(java.nio.file.Path file,
boolean saveNow) |
void |
saveBuffer() |
void |
saveBufferNow() |
public JAXBGate(java.nio.file.Path file)
public JAXBGate(java.nio.file.Path file, java.lang.Class<B> bufferClass)
public final java.nio.file.Path getFile()
protected abstract void readBuffer(B buffer) throws java.lang.Exception
java.lang.Exception
protected abstract B createBuffer() throws java.lang.Exception
java.lang.Exception
protected javax.xml.bind.JAXBContext getJaxbContext() throws javax.xml.bind.JAXBException
javax.xml.bind.JAXBException
public void load(java.nio.file.Path file) throws java.lang.Exception
java.lang.Exception
public void loadBuffer() throws java.lang.Exception
java.lang.Exception
public void save(java.nio.file.Path file, boolean saveNow) throws java.lang.Exception
java.lang.Exception
public void saveBuffer() throws java.lang.Exception
java.lang.Exception
public void saveBufferNow() throws java.lang.Exception
java.lang.Exception