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

public Class ScriptSourceInputFromFile

extends AbstractScriptSourceInput
Class Inheritance
Imports
java.io.File, .FileInputStream, .IOException, .InputStreamReader, .Reader, java.net.URL, org.hibernate.tool.schema.spi.SchemaManagementException, org.jboss.logging.Logger

ScriptSourceInput implementation for File references.
Author
Steve Ebersole

Field Summary

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

Constructor Summary

AccessConstructor and Description
public
ScriptSourceInputFromFile(File
The file to read from
file
,
String
The charset name
charsetName
)

Constructs a ScriptSourceInputFromFile

Method Summary

Modifier and TypeMethod and Description
public boolean
public String
protected Reader
protected void
private static Reader
toReader(File file, String charsetName)

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from org.hibernate.tool.schema.internal.exec.AbstractScriptSourceInput:
extract

Field Detail

charsetNameback to summary
private final String charsetName
fileback to summary
private final File file
logback to summary
private static final Logger log

Constructor Detail

ScriptSourceInputFromFileback to summary
public ScriptSourceInputFromFile(File file, String charsetName)

Constructs a ScriptSourceInputFromFile

Parameters
file:File

The file to read from

charsetName:String

The charset name

Method Detail

containsScriptback to summary
public boolean containsScript(URL url)

Overrides default org.hibernate.tool.schema.spi.ScriptSourceInput.containsScript.

Annotations
@Override
getScriptDescriptionback to summary
public String getScriptDescription()

Overrides default org.hibernate.tool.schema.spi.ScriptSourceInput.getScriptDescription.

Annotations
@Override
prepareReaderback to summary
protected Reader prepareReader()

Implements abstract org.hibernate.tool.schema.internal.exec.AbstractScriptSourceInput.prepareReader.

Annotations
@Override
releaseReaderback to summary
protected void releaseReader(Reader reader)

Implements abstract org.hibernate.tool.schema.internal.exec.AbstractScriptSourceInput.releaseReader.

Annotations
@Override
toReaderback to summary
private static Reader toReader(File file, String charsetName)
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.

Annotations
@Override