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
-
ScalaScript(String, String, boolean)
- Public Constructor
-
endChannel()
- endChannel -- End Channel.
-
endDay()
-
endDay -- End programming day.
-
endSchedule()
- endSchedule -- Close all files
-
newChannel(String)
- newChannel -- Initialize new channel output object.
-
newProgram(ProgramItem)
- newProgram -- Insert new program item
-
newSchedule(String)
-
newSchedule(String schedulename)
Intialize new Scala schedule object
-
setBanner(String)
- setBanner -- Set banner
-
setHoliday(String)
- setHoliday
Get the Holiday text from the parser
-
startDay(String)
- startDay -- Start programming day.
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
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
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
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
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
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
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
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
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
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