org.dbmaintain.script
Class ScriptContentHandle.UrlScriptContentHandle

java.lang.Object
  extended by org.dbmaintain.script.ScriptContentHandle
      extended by org.dbmaintain.script.ScriptContentHandle.UrlScriptContentHandle
Enclosing class:
ScriptContentHandle

public static class ScriptContentHandle.UrlScriptContentHandle
extends ScriptContentHandle

A handle for getting the script content as a stream.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.dbmaintain.script.ScriptContentHandle
ScriptContentHandle.StringScriptContentHandle, ScriptContentHandle.UrlScriptContentHandle
 
Field Summary
 
Fields inherited from class org.dbmaintain.script.ScriptContentHandle
encoding, ignoreCarriageReturnsWhenCalculatingCheckSum, scriptDigest, scriptReader
 
Constructor Summary
ScriptContentHandle.UrlScriptContentHandle(URL url, String encoding, boolean ignoreCarriageReturnsWhenCalculatingCheckSum)
          Creates a content handle.
 
Method Summary
protected  InputStream getScriptInputStream()
          Opens a stream to the content of the script.
 
Methods inherited from class org.dbmaintain.script.ScriptContentHandle
getCheckSum, getHexPresentation, getScriptContentsAsString, getScriptDigest, openScriptContentReader
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScriptContentHandle.UrlScriptContentHandle

public ScriptContentHandle.UrlScriptContentHandle(URL url,
                                                  String encoding,
                                                  boolean ignoreCarriageReturnsWhenCalculatingCheckSum)
Creates a content handle.

Parameters:
url - The url to the content, not null
encoding - The encoding of the script, not null
ignoreCarriageReturnsWhenCalculatingCheckSum - If true, carriage return chars will be ignored when calculating check sums
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.