com.sodius.mdw.core.util.io
Interface InputSourceProvider


public interface InputSourceProvider

Provides access to an input source. This input source is not necessarily expected to refer to actual XML content. This interface is used to get access to a data content that may be specified using either a character or a byte stream.

Clients may implement this interface.

Since:
3.2.0
See Also:
GeneratedCode.setContents(InputSourceProvider)

Method Summary
 void dispose()
          Disposes of this input source.
 InputSource getInputSource()
          Gives access to the underlying input source.
 

Method Detail

getInputSource

InputSource getInputSource()
                           throws IOException
Gives access to the underlying input source.

Throws:
IOException - if the data content is no longer accessible.

dispose

void dispose()
Disposes of this input source. When used in conjunction with a GeneratedCode, this method is called when the generated content has been written on disk.