org.unitils.dbmaintainer.script
Class ScriptContentHandle.StringScriptContentHandle

java.lang.Object
  extended by org.unitils.dbmaintainer.script.ScriptContentHandle
      extended by org.unitils.dbmaintainer.script.ScriptContentHandle.StringScriptContentHandle
Enclosing class:
ScriptContentHandle

public static class ScriptContentHandle.StringScriptContentHandle
extends ScriptContentHandle

A handle for getting the script content as a stream.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.unitils.dbmaintainer.script.ScriptContentHandle
ScriptContentHandle.StringScriptContentHandle, ScriptContentHandle.UrlScriptContentHandle
 
Constructor Summary
ScriptContentHandle.StringScriptContentHandle(String scriptContent)
          Creates a content handle.
 
Method Summary
protected  InputStream getScriptInputStream()
          Opens a stream to the content of the script.
 
Methods inherited from class org.unitils.dbmaintainer.script.ScriptContentHandle
getCheckSum, getHexPresentation, getScriptDigest, openScriptContentReader, readScript
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScriptContentHandle.StringScriptContentHandle

public ScriptContentHandle.StringScriptContentHandle(String scriptContent)
Creates a content handle.

Parameters:
scriptContent - The content, not null
Method Detail

getScriptInputStream

protected InputStream getScriptInputStream()
Opens a stream to the content of the script.

Specified by:
getScriptInputStream in class ScriptContentHandle
Returns:
The content stream, not null


Copyright © 2011. All Rights Reserved.