org.dbmaintain.script
Class ScriptContentHandle.UrlScriptContentHandle
java.lang.Object
org.dbmaintain.script.ScriptContentHandle
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ScriptContentHandle.UrlScriptContentHandle
public ScriptContentHandle.UrlScriptContentHandle(URL url,
String encoding,
boolean ignoreCarriageReturnsWhenCalculatingCheckSum)
- Creates a content handle.
- Parameters:
url
- The url to the content, not nullencoding
- The encoding of the script, not nullignoreCarriageReturnsWhenCalculatingCheckSum
- If true, carriage return chars will be ignored when calculating check sums
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.