|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.groboutils.codecoverage.v2.util.ConvertSingleLog
A way to convert the single log style (not necessarily a file), and outputs it to a channel logger. This converter handles multiple channels.
As of 2004-Jun-03, the format has changed.
Constructor Summary | |
ConvertSingleLog(IChannelLogger[] ch)
Create a new converter, using the given initialized loggers as the output channels. |
Method Summary | |
protected java.lang.String |
lastElement(int[] pos,
java.lang.String line)
|
protected java.lang.String |
nextElement(int[] pos,
java.lang.String line)
|
protected short |
nextShort(int[] pos,
java.lang.String line)
|
protected short |
parseShort(java.lang.String txt,
java.lang.String line)
|
void |
processLine(java.lang.String line,
boolean ignoreFormatErrors)
Process a single line from the single file. |
void |
read(java.io.Reader r,
boolean ignoreFormatErrors)
Loads all data from the given reader and parses it out to the channels. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ConvertSingleLog(IChannelLogger[] ch)
ch
- the channels to output the single log to.
java.lang.IllegalArgumentException
- if ch or any entry inside
ch is null, or if the length of ch is 0.Method Detail |
public void read(java.io.Reader r, boolean ignoreFormatErrors) throws java.io.IOException
java.io.IOException
- if there is an I/O error reading from r.
java.lang.IllegalArgumentException
- if the reader is null.public void processLine(java.lang.String line, boolean ignoreFormatErrors) throws java.io.IOException
line
- the input line
java.io.IOException
- if there's a problem with the format of the line,
or if line is null.protected java.lang.String nextElement(int[] pos, java.lang.String line) throws java.io.IOException
java.io.IOException
protected short nextShort(int[] pos, java.lang.String line) throws java.io.IOException
java.io.IOException
protected java.lang.String lastElement(int[] pos, java.lang.String line) throws java.io.IOException
java.io.IOException
protected short parseShort(java.lang.String txt, java.lang.String line) throws java.io.IOException
java.io.IOException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |