All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class dmoisan.xml.tvschedule.ScalaScript

java.lang.Object
   |
   +----dmoisan.xml.tvschedule.TVScheduleOutputObject
           |
           +----dmoisan.xml.tvschedule.ScalaScript

public class ScalaScript
extends TVScheduleOutputObject
See http://www1.shore.net/~dmoisan/comp/xml/scalaxml/ for usage information.

See Also:
TVScheduleOutputObject, TVScheduleHandler, ProgramItem, TemplateStream

Constructor Index

 o ScalaScript(String, String, boolean)
Public Constructor

Method Index

 o endChannel()
endChannel -- End Channel.
 o endDay()
endDay -- End programming day.
 o endSchedule()
endSchedule -- Close all files
 o newChannel(String)
newChannel -- Initialize new channel output object.
 o newProgram(ProgramItem)
newProgram -- Insert new program item
 o newSchedule(String)
newSchedule(String schedulename) Intialize new Scala schedule object
 o setBanner(String)
setBanner -- Set banner
 o setHoliday(String)
setHoliday Get the Holiday text from the parser
 o startDay(String)
startDay -- Start programming day.

Constructors

 o ScalaScript
 public ScalaScript(String templatefilename,
                    String outputscriptname,
                    boolean singleoutput) throws IOException
Public Constructor

Parameters:
templatefilename - String Template file
outputscriptname - String If singleoutput is true, then this is the output file name, otherwise outputscriptname+channelnumber (SATV3, for example) is the output file name.
singleoutput - boolean Single-file-output flag, as described above.
Throws: IOException
Thrown on file I/O errors

Methods

 o newSchedule
 public void newSchedule(String schedulename) throws TVScheduleParseException, IOException
newSchedule(String schedulename) Intialize new Scala schedule object

Parameters:
schedulename - (String) Name of TV schedule NOT USED IN THIS VERSION
Throws: TVScheduleParseException
Thrown on parsing/semantic errors
Throws: IOException
Thrown on I/O errors
Overrides:
newSchedule in class TVScheduleOutputObject
 o newChannel
 public void newChannel(String channelname) throws TVScheduleParseException, IOException
newChannel -- Initialize new channel output object.

Parameters:
channel - Channel name
Throws: TVScheduleParseException
Thrown on parsing/semantic errors
Throws: IOException
Thrown on I/O errors
Overrides:
newChannel in class TVScheduleOutputObject
 o setBanner
 public void setBanner(String banner) throws TVScheduleParseException, IOException
setBanner -- Set banner

Parameters:
banner - String Banner text
Throws: TVScheduleParseException
Thrown on parsing/semantic errors
Throws: IOException
Thrown on I/O errors
Overrides:
setBanner in class TVScheduleOutputObject
 o startDay
 public void startDay(String day) throws TVScheduleParseException, IOException
startDay -- Start programming day.

Parameters:
day - String Current programming day
Throws: TVScheduleParseException
Thrown on parsing/semantic errors
Throws: IOException
Thrown on I/O errors
Overrides:
startDay in class TVScheduleOutputObject
 o setHoliday
 public void setHoliday(String holiday) throws TVScheduleParseException, IOException
setHoliday Get the Holiday text from the parser

Parameters:
holiday - String Holiday notification text
Throws: TVScheduleParseException
Thrown on parsing/semantic errors
Throws: IOException
Thrown on I/O errors
Overrides:
setHoliday in class TVScheduleOutputObject
 o newProgram
 public void newProgram(ProgramItem program) throws TVScheduleParseException, IOException
newProgram -- Insert new program item

Parameters:
program - ProgramItem Program information
Throws: TVScheduleParseException
Thrown on parsing/semantic errors
Throws: IOException
Thrown on I/O errors
Overrides:
newProgram in class TVScheduleOutputObject
 o endDay
 public void endDay() throws TVScheduleParseException, IOException
endDay -- End programming day. Usually used to end the current page.

Throws: TVScheduleParseException
Thrown on parsing/semantic errors
Throws: IOException
Thrown on I/O errors
Overrides:
endDay in class TVScheduleOutputObject
 o endChannel
 public void endChannel() throws TVScheduleParseException, IOException
endChannel -- End Channel. Used to close the current output file.

Throws: TVScheduleParseException
Thrown on parsing/semantic errors
Throws: IOException
Thrown on I/O errors
Overrides:
endChannel in class TVScheduleOutputObject
 o endSchedule
 public void endSchedule() throws TVScheduleParseException, IOException
endSchedule -- Close all files

Throws: TVScheduleParseException
Thrown on parsing/semantic errors
Throws: IOException
Thrown on I/O Errors
Overrides:
endSchedule in class TVScheduleOutputObject

All Packages  Class Hierarchy  This Package  Previous  Next  Index