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
Constructors Constructor Description ScriptTargetOutputToUrl(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
prepare()
Prepare the script target to accept commandsvoid
release()
Release this outputprotected Writer
writer()
-
Methods inherited from class org.hibernate.tool.schema.internal.exec.AbstractScriptTargetOutput
accept
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.hibernate.tool.schema.spi.ScriptTargetOutput
accept
-
-
-
-
Constructor Detail
-
ScriptTargetOutputToUrl
public ScriptTargetOutputToUrl(URL url, String charsetName, boolean append)
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
-
-
Method Detail
-
writer
protected Writer writer()
- Specified by:
writer
in classAbstractScriptTargetOutput
-
prepare
public void prepare()
Description copied from interface:ScriptTargetOutput
Prepare the script target to accept commands- Specified by:
prepare
in interfaceScriptTargetOutput
- Overrides:
prepare
in classAbstractScriptTargetOutput
-
release
public void release()
Description copied from interface:ScriptTargetOutput
Release this output- Specified by:
release
in interfaceScriptTargetOutput
- Overrides:
release
in classAbstractScriptTargetOutput
-
-