Class ScriptTargetOutputToFile
java.lang.Object
org.hibernate.tool.schema.internal.exec.AbstractScriptTargetOutput
org.hibernate.tool.schema.internal.exec.ScriptTargetOutputToFile
- All Implemented Interfaces:
ScriptTargetOutput
public class ScriptTargetOutputToFile
extends AbstractScriptTargetOutput
implements ScriptTargetOutput
ScriptTargetOutput implementation for writing to supplied File references
-
Constructor Summary
ConstructorsConstructorDescriptionScriptTargetOutputToFile
(File file, String charsetName) Constructs a ScriptTargetOutputToFile instance, the bytes will be written to the end of the file rather than the beginningScriptTargetOutputToFile
(File file, String charsetName, boolean append) Constructs a ScriptTargetOutputToFile instance -
Method Summary
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 Details
-
ScriptTargetOutputToFile
Constructs a ScriptTargetOutputToFile instance- Parameters:
file
- The file to read fromcharsetName
- The charset nameappend
- If true, then bytes will be written to the end of the file rather than the beginning
-
ScriptTargetOutputToFile
Constructs a ScriptTargetOutputToFile instance, the bytes will be written to the end of the file rather than the beginning- Parameters:
file
- The file to read fromcharsetName
- The charset name
-
-
Method Details
-
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
-