com.ca.commons.datamodel
Class DataModelWritableStreamSource

java.lang.Object
  extended by com.ca.commons.datamodel.DataModelSource
      extended by com.ca.commons.datamodel.DataModelWritableSource
          extended by com.ca.commons.datamodel.DataModelWritableStreamSource
Direct Known Subclasses:
DataModelFileSource

public abstract class DataModelWritableStreamSource
extends DataModelWritableSource


Field Summary
 
Fields inherited from class com.ca.commons.datamodel.DataModelSource
logger
 
Constructor Summary
protected DataModelWritableStreamSource(String name)
           
 
Method Summary
protected abstract  InputStream inputStream()
           
protected abstract  OutputStream outputStream()
           
 ModelType readJaxbModelImpl()
           
 void writeJaxbModelImpl(ModelType jaxbModel)
           
 
Methods inherited from class com.ca.commons.datamodel.DataModelWritableSource
newMarshaller, writeComplete, writeJaxbModel
 
Methods inherited from class com.ca.commons.datamodel.DataModelSource
equals, getName, hashCode, invalidate, isChanged, lastModified, override, readComplete, readJaxbModel
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataModelWritableStreamSource

protected DataModelWritableStreamSource(@NotNull
                                        String name)
Method Detail

inputStream

@NotNull
protected abstract InputStream inputStream()
                                    throws IOException
Throws:
IOException

readJaxbModelImpl

@NotNull
public ModelType readJaxbModelImpl()
                            throws javax.xml.bind.JAXBException,
                                   IOException
Specified by:
readJaxbModelImpl in class DataModelSource
Throws:
javax.xml.bind.JAXBException
IOException

outputStream

@NotNull
protected abstract OutputStream outputStream()
                                      throws IOException
Throws:
IOException

writeJaxbModelImpl

public void writeJaxbModelImpl(@NotNull
                               ModelType jaxbModel)
                        throws javax.xml.bind.JAXBException,
                               IOException
Specified by:
writeJaxbModelImpl in class DataModelWritableSource
Throws:
javax.xml.bind.JAXBException
IOException


Created 2011-07-14 13:27 EST