org.apache.maven.perforcelib
Class PerforceChangeLogParser

java.lang.Object
  extended byorg.apache.maven.perforcelib.PerforceChangeLogParser
All Implemented Interfaces:
ChangeLogParser

public class PerforceChangeLogParser
extends Object
implements ChangeLogParser

A class to parse the log output from the Perforce 'filelog' command.

Version:
$Id:
Author:
Jim Crossley

Constructor Summary
PerforceChangeLogParser()
          Default constructor.
 
Method Summary
 void cleanup()
          Clean up any parser resources.
 void init(ChangeLog changeLog)
          Initialize the parser from the change log.
 Collection parse(InputStream anInputStream)
          Parse the input stream into a collection of entries
 void setDateFormatInFile(String dateFormat)
          Set the date formatter for parse starteam stream
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PerforceChangeLogParser

public PerforceChangeLogParser()
Default constructor.

Method Detail

init

public void init(ChangeLog changeLog)
Initialize the parser from the change log.

Specified by:
init in interface ChangeLogParser
Parameters:
changeLog - The controlling task
See Also:
ChangeLogParser.init(ChangeLog)

cleanup

public void cleanup()
Clean up any parser resources.

Specified by:
cleanup in interface ChangeLogParser
See Also:
ChangeLogParser.cleanup()

parse

public Collection parse(InputStream anInputStream)
                 throws IOException
Parse the input stream into a collection of entries

Specified by:
parse in interface ChangeLogParser
Parameters:
anInputStream - An input stream containing perforce log output
Returns:
A collection of ChangeLogEntry's
Throws:
IOException - When there are errors reading the provided stream

setDateFormatInFile

public void setDateFormatInFile(String dateFormat)
Description copied from interface: ChangeLogParser
Set the date formatter for parse starteam stream

Specified by:
setDateFormatInFile in interface ChangeLogParser
Parameters:
dateFormat - a dateFormat for replace the local format


Copyright © 2001-2007 Apache Software Foundation. All Rights Reserved.