Top Description Fields Constructors Methods
org.apache.tools.ant.taskdefs.cvslib

public Class ChangeLogWriter

extends Object
Class Inheritance
Imports
java.io.IOException, .PrintWriter, java.text.SimpleDateFormat, java.util.TimeZone, org.apache.tools.ant.BuildException, org.apache.tools.ant.util.DOMElementWriter, .DOMUtils, org.w3c.dom.Document, .Element

Class used to generate an XML changelog.

Field Summary

Modifier and TypeField and Description
private static final DOMElementWriter
DOM_WRITER

stateless helper for writing the XML document

private final SimpleDateFormat
outputDate

output format for dates written to xml file

private SimpleDateFormat
outputTime

output format for times written to xml file

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
printChangeLog(final PrintWriter
writer to which to send output.
output
,
final CVSEntry[]
the entries to be written.
entries
)

Print out the specified entries.

private void
printEntry(Document
Document used to create elements.
doc
,
final PrintWriter
writer to which to send output.
output
,
final CVSEntry
the entry to print
entry
)

Print out an individual entry in changelog.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

DOM_WRITERback to summary
private static final DOMElementWriter DOM_WRITER

stateless helper for writing the XML document

outputDateback to summary
private final SimpleDateFormat outputDate

output format for dates written to xml file

outputTimeback to summary
private SimpleDateFormat outputTime

output format for times written to xml file

Constructor Detail

ChangeLogWriterback to summary
public ChangeLogWriter()

Method Detail

printChangeLogback to summary
public void printChangeLog(final PrintWriter output, final CVSEntry[] entries)

Print out the specified entries.

Parameters
output:PrintWriter

writer to which to send output.

entries:CVSEntry[]

the entries to be written.

printEntryback to summary
private void printEntry(Document doc, final PrintWriter output, final CVSEntry entry) throws IOException

Print out an individual entry in changelog.

Parameters
doc:Document

Document used to create elements.

output:PrintWriter

writer to which to send output.

entry:CVSEntry

the entry to print