Class ScriptTargetOutputToUrl
java.lang.Object
org.hibernate.tool.schema.internal.exec.AbstractScriptTargetOutput
org.hibernate.tool.schema.internal.exec.ScriptTargetOutputToUrl
- All Implemented Interfaces:
ScriptTargetOutput
public class ScriptTargetOutputToUrl
extends AbstractScriptTargetOutput
implements ScriptTargetOutput
ScriptTargetOutput implementation for writing to supplied URL references
-
Constructor Summary
ConstructorsConstructorDescriptionScriptTargetOutputToUrl(URL url, String charsetName) Constructs a ScriptTargetOutputToUrl instance the bytes will be written to the end of the file rather than the beginningScriptTargetOutputToUrl(URL url, String charsetName, boolean append) Constructs a ScriptTargetOutputToUrl instance -
Method Summary
Methods inherited from class org.hibernate.tool.schema.internal.exec.AbstractScriptTargetOutput
acceptMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.hibernate.tool.schema.spi.ScriptTargetOutput
accept
-
Constructor Details
-
ScriptTargetOutputToUrl
Constructs a ScriptTargetOutputToUrl instance- Parameters:
url- The url to read fromcharsetName- The charset nameappend- If true, then bytes will be written to the end of the file rather than the beginning
-
ScriptTargetOutputToUrl
Constructs a ScriptTargetOutputToUrl instance the bytes will be written to the end of the file rather than the beginning- Parameters:
url- The url to read fromcharsetName- The charset name
-
-
Method Details
-
writer
- Specified by:
writerin classAbstractScriptTargetOutput
-
prepare
public void prepare()Description copied from interface:ScriptTargetOutputPrepare the script target to accept commands- Specified by:
preparein interfaceScriptTargetOutput- Overrides:
preparein classAbstractScriptTargetOutput
-
release
public void release()Description copied from interface:ScriptTargetOutputRelease this output- Specified by:
releasein interfaceScriptTargetOutput- Overrides:
releasein classAbstractScriptTargetOutput
-