Top Description Fields Constructors Methods
org.hibernate.tool.schema.internal.exec

public Class ScriptTargetOutputToFile

extends AbstractScriptTargetOutput
implements ScriptTargetOutput
Class Inheritance
All Implemented Interfaces
org.hibernate.tool.schema.spi.ScriptTargetOutput
Imports
java.io.File, .FileOutputStream, .IOException, .OutputStreamWriter, .Writer, org.hibernate.internal.CoreLogging, org.hibernate.tool.schema.spi.SchemaManagementException, .ScriptTargetOutput, org.jboss.logging.Logger

ScriptTargetOutput implementation for writing to supplied File references
Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
private final boolean
private final String
private final File
private static final Logger
private Writer

Constructor Summary

AccessConstructor and Description
public
ScriptTargetOutputToFile(File
The file to read from
file
,
String
The charset name
charsetName
,
boolean
If true, then bytes will be written to the end of the file rather than the beginning
append
)

Constructs a ScriptTargetOutputToFile instance

public
ScriptTargetOutputToFile(File
The file to read from
file
,
String
The charset name
charsetName
)

Constructs a ScriptTargetOutputToFile instance, the bytes will be written to the end of the file rather than the beginning

Method Summary

Modifier and TypeMethod and Description
public void
public void
pack-priv static Writer
toFileWriter(File file, String charsetName, boolean append)

protected Writer
Inherited from org.hibernate.tool.schema.internal.exec.AbstractScriptTargetOutput:
accept

Field Detail

appendback to summary
private final boolean append
charsetNameback to summary
private final String charsetName
fileback to summary
private final File file
logback to summary
private static final Logger log
writerback to summary
private Writer writer

Constructor Detail

ScriptTargetOutputToFileback to summary
public ScriptTargetOutputToFile(File file, String charsetName, boolean append)

Constructs a ScriptTargetOutputToFile instance

Parameters
file:File

The file to read from

charsetName:String

The charset name

append:boolean

If true, then bytes will be written to the end of the file rather than the beginning

ScriptTargetOutputToFileback to summary
public ScriptTargetOutputToFile(File file, String charsetName)

Constructs a ScriptTargetOutputToFile instance, the bytes will be written to the end of the file rather than the beginning

Parameters
file:File

The file to read from

charsetName:String

The charset name

Method Detail

prepareback to summary
public void prepare()

Overrides org.hibernate.tool.schema.internal.exec.AbstractScriptTargetOutput.prepare.

Implements org.hibernate.tool.schema.spi.ScriptTargetOutput.prepare.

Doc from org.hibernate.tool.schema.spi.ScriptTargetOutput.prepare.

Prepare the script target to accept commands

Annotations
@Override
releaseback to summary
public void release()

Overrides org.hibernate.tool.schema.internal.exec.AbstractScriptTargetOutput.release.

Implements org.hibernate.tool.schema.spi.ScriptTargetOutput.release.

Doc from org.hibernate.tool.schema.spi.ScriptTargetOutput.release.

Release this output

Annotations
@Override
toFileWriterback to summary
pack-priv static Writer toFileWriter(File file, String charsetName, boolean append)
Annotations
@SuppressWarnings:ResultOfMethodCallIgnored
writerback to summary
protected Writer writer()

Implements abstract org.hibernate.tool.schema.internal.exec.AbstractScriptTargetOutput.writer.

Annotations
@Override