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

public Class ScriptTargetOutputToUrl

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

ScriptTargetOutput implementation for writing to supplied URL references
Author
Steve Ebersole

Field Summary

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

Constructor Summary

AccessConstructor and Description
public
ScriptTargetOutputToUrl(URL
The url to read from
url
,
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 ScriptTargetOutputToUrl instance

public
ScriptTargetOutputToUrl(URL
The url to read from
url
,
String
The charset name
charsetName
)

Constructs a ScriptTargetOutputToUrl 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
private static Writer
toWriter(URL url, 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
logback to summary
private static final Logger log
urlback to summary
private final URL url
writerback to summary
private Writer writer

Constructor Detail

ScriptTargetOutputToUrlback to summary
public ScriptTargetOutputToUrl(URL url, String charsetName, boolean append)

Constructs a ScriptTargetOutputToUrl instance

Parameters
url:URL

The url 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

ScriptTargetOutputToUrlback to summary
public ScriptTargetOutputToUrl(URL url, String charsetName)

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

Parameters
url:URL

The url 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
toWriterback to summary
private static Writer toWriter(URL url, String charsetName, boolean append)
writerback to summary
protected Writer writer()

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

Annotations
@Override