Copyright (C) 2003,2004 dr. Cristiano Sadun
A B C D E F G H I J L M N O P R S T U V

A

ALFA - Static variable in class org.sadun.text.ffp.Type
The field is alphanumeric
AbortFFPException - exception org.sadun.text.ffp.AbortFFPException.
An exception of this class can be raised by an FlatFileParser.AdvancedListener to signal problems at parsing start, termination or when using a DispatcherListener.
AbortFFPException(String) - Constructor for class org.sadun.text.ffp.AbortFFPException
 
AbortFFPException(String, Throwable) - Constructor for class org.sadun.text.ffp.AbortFFPException
 
AndCondition - class org.sadun.text.ffp.AndCondition.
A FlatFileParser.Condition that holds if and only if all the conditions it groups hold.
AndCondition(FlatFileParser.Condition, FlatFileParser.Condition) - Constructor for class org.sadun.text.ffp.AndCondition
Create an AndCondition based on two conditions
AndCondition(FlatFileParser.Condition[]) - Constructor for class org.sadun.text.ffp.AndCondition
Create an AndCondition based on an array of conditions
addDispatch(LineFormat, FlatFileParser.Listener) - Method in class org.sadun.text.ffp.FlatFileParser
Associates the given LineFormat to the given listener, so that when a line is parsed by the given format, the event is sent to the given listener.
addListener(FlatFileParser.Listener) - Method in class org.sadun.text.ffp.FlatFileParser
Add the given listener to the registered listeners set.
associateListener(LineFormat, FlatFileParser.Listener) - Method in class org.sadun.text.ffp.DispatcherListener
 

B

BaseListener - class org.sadun.text.ffp.BaseListener.
A base implementation of FlatFileParser.Listener which activates only when on a specific line format name (or a specific regular expression match) is successfully parsed.
BaseListener(String) - Constructor for class org.sadun.text.ffp.BaseListener
Create a listener which matches exactly the given line format name.
BaseListener(String, boolean) - Constructor for class org.sadun.text.ffp.BaseListener
Create a listener which matches the given line format name or the given regular expression.

C

CONSTANT - Static variable in class org.sadun.text.ffp.Type
The field is a (alphanumeric) constant
ConstantFoundInLineCondition - class org.sadun.text.ffp.ConstantFoundInLineCondition.
A condition that looks for a matching constant into a specific physical line.
ConstantFoundInLineCondition(int, String, int) - Constructor for class org.sadun.text.ffp.ConstantFoundInLineCondition
Create a condition which will look for the given constant at the given position of the given physical line in the file.
ConstantFoundInLineCondition(String, int) - Constructor for class org.sadun.text.ffp.ConstantFoundInLineCondition
Create a condition which will look for the given constant at the given position of the next line in the file.
ConstantFoundInLineCondition(int, LineFormat, int) - Constructor for class org.sadun.text.ffp.ConstantFoundInLineCondition
Create a condition which will look at the value of the nth field of the given physical line in the given LineFormatobject.
ConstantFoundInLineCondition(LineFormat, int) - Constructor for class org.sadun.text.ffp.ConstantFoundInLineCondition
Create a condition which will look at the value of the nth field in the given LineFormatobject.
ConstantFoundInLineCondition(int, LineFormat) - Constructor for class org.sadun.text.ffp.ConstantFoundInLineCondition
Create a condition which will look at the value of the first constant field in the given physical line of the given LineFormatobject.
ConstantFoundInLineCondition(LineFormat) - Constructor for class org.sadun.text.ffp.ConstantFoundInLineCondition
Create a condition which will look at the value of the first constant field of in the given LineFormatobject.
ConstantLineCondition - class org.sadun.text.ffp.ConstantLineCondition.
A condition which holds only if the next line on the file is identical to the a given constant.
ConstantLineCondition(String) - Constructor for class org.sadun.text.ffp.ConstantLineCondition
Create a condition which use the given constant.
CountCondition - class org.sadun.text.ffp.CountCondition.
A condition which compares the numer of physical/logical lines read so far with a given number (pivot number), checking for a specific simple numeric relationship.
CountCondition(int, int, int) - Constructor for class org.sadun.text.ffp.CountCondition
Create a condition of the given type (using one of the type constants), referring to either logical or physical lines, and pivoted on the given number.
CountCondition(int, int) - Constructor for class org.sadun.text.ffp.CountCondition
Create a condition of the given type (using one of the type constants), referring to the logical lines, and pivoted on the given number.
createCopy() - Method in class org.sadun.text.ffp.LineFormat
Create an independent copy of the format.
createFFP(InputStream) - Method in class org.sadun.text.ffp.FFPFactory
Create a single FlatFileParserreading the given stream.
createFFP(URL) - Method in class org.sadun.text.ffp.FFPFactory
 

D

DBInsertionListener - class org.sadun.text.ffp.test.DBInsertionListener.
 
DBInsertionListener(DataSource, String) - Constructor for class org.sadun.text.ffp.test.DBInsertionListener
 
DBInsertionListener(DataSource, String, String) - Constructor for class org.sadun.text.ffp.test.DBInsertionListener
 
DBInsertionListenerTest - class org.sadun.text.ffp.test.DBInsertionListenerTest.
 
DBInsertionListenerTest() - Constructor for class org.sadun.text.ffp.test.DBInsertionListenerTest
 
DEFAULT_NAME - Static variable in class org.sadun.text.ffp.LineFormat.FieldInfo
 
DispatcherListener - class org.sadun.text.ffp.DispatcherListener.
A dispatcher that allows to have different listeners receiving parsing events from a FlatFileParser depending on the line format which matched the line, instead of one monolithic one receiving all parsing events.
DispatcherListener(boolean) - Constructor for class org.sadun.text.ffp.DispatcherListener
Create a dispatcher listener, with no other listeners associated.
DispatcherListener() - Constructor for class org.sadun.text.ffp.DispatcherListener
Create a dispatcher listener which does not require that all events are associated to a listener (see DispatcherListener.DispatcherListener(boolean) ).
declare(FlatFileParser.Condition, LineFormat) - Method in class org.sadun.text.ffp.FlatFileParser
Declare that a certain LineFormat is to be used under the given condition.
declare(LineFormat) - Method in class org.sadun.text.ffp.FlatFileParser
Declare that the only line format recognized by the parser be the one given.
declare(String) - Method in class org.sadun.text.ffp.FlatFileParser
Declare that the only line format recognized by the parser be the one whose image is given.
declare(FlatFileParser.Condition, String) - Method in class org.sadun.text.ffp.FlatFileParser
Declare that a certain LineFormat, whose image is given, is to be used under the given condition.
declareLineImage(String) - Method in class org.sadun.text.ffp.LineFormat
This method allows to declare quickly a line format by providing an image.
declareLineImage(int, String) - Method in class org.sadun.text.ffp.LineFormat
This method allows to declare quickly a line format by providing an image.
defaultFailOnLineParsingError - Static variable in class org.sadun.text.ffp.FlatFileParser
The default value used to intialize the failOnLineParsingError property when a parser instance is constructed.
defaultFailOnTrailingChars - Static variable in class org.sadun.text.ffp.LineFormat
This member controls the default value of the failOnTrailingChars property.
defineField(int, int, int) - Method in class org.sadun.text.ffp.LineFormat
Define a field as being in the given physical line and at the given start-end position.
defineField(int, int, int, Type) - Method in class org.sadun.text.ffp.LineFormat
Define a field as being in the given physical line and at the given start-end position.
defineField(int, int, int, Type, String) - Method in class org.sadun.text.ffp.LineFormat
Define a field as being in the given physical line and at the given start-end position.
defineField(int, String, int, int) - Method in class org.sadun.text.ffp.LineFormat
Define a field as being in the given physical line and at the given start-end position.
defineField(int, String, int, int, Type) - Method in class org.sadun.text.ffp.LineFormat
Define a field as being in the given physical line and at the given start-end position.
defineField(int, String, int, int, Type, String) - Method in class org.sadun.text.ffp.LineFormat
Define a field as being in the given physical line and at the given start-end position.
defineField(int, int) - Method in class org.sadun.text.ffp.LineFormat
Define a field as being at the given start-end position.
defineField(int, int, Type) - Method in class org.sadun.text.ffp.LineFormat
Define a field as being at the given start-end position and having the given type.
defineField(String, int, int) - Method in class org.sadun.text.ffp.LineFormat
Define a field as being at the given start-end position and having the given name.
defineField(String, int, int, Type) - Method in class org.sadun.text.ffp.LineFormat
Define a field as being at the given start-end position and having the given name and type.
defineFields(int, int[][]) - Method in class org.sadun.text.ffp.LineFormat
Define fields in the given physical line using a positions array.
defineFields(int[][]) - Method in class org.sadun.text.ffp.LineFormat
Define fields using a positions array.
defineNextField(int, int) - Method in class org.sadun.text.ffp.LineFormat
Define a field as being in the given physical line, from the current start position to the given end position (excluded).
defineNextField(int, int, Type) - Method in class org.sadun.text.ffp.LineFormat
Define a field as being in the given physical line, having the given type and being located from the current start position to the given end position (excluded).
defineNextField(int, int, Type, String) - Method in class org.sadun.text.ffp.LineFormat
Define a field as being in the given physical line, having the given type and image and being located from the current start position to the given end position (excluded).
defineNextField(int, String, int) - Method in class org.sadun.text.ffp.LineFormat
Define a field as being in the given physical line, having the given name and being located from the current start position to the given end position (excluded).
defineNextField(int, String, int, Type) - Method in class org.sadun.text.ffp.LineFormat
Define a field as being in the given physical line, having the given name and type and being located from the current start position to the given end position (excluded).
defineNextField(int, String, int, Type, String) - Method in class org.sadun.text.ffp.LineFormat
Define a field as being in the given physical line, having the given name, type and image and being located from the current start position to the given end position (excluded).
defineNextField(int) - Method in class org.sadun.text.ffp.LineFormat
Define a field as being located from the current start position to the given end position (excluded).
defineNextField(String, int) - Method in class org.sadun.text.ffp.LineFormat
Define a field as having the given name and being located from the current start position to the given end position (excluded).
defineNextField(String, int, Type) - Method in class org.sadun.text.ffp.LineFormat
Define a field as having the given name and being located from the current start position to the given end position (excluded), and given type
defineNextField(String, int, Type, String) - Method in class org.sadun.text.ffp.LineFormat
Define a field as having the given name and being located from the current start position to the given end position (excluded), and given type and image
defineNextField(int, Type) - Method in class org.sadun.text.ffp.LineFormat
Define a field as having the given type and being located from the current start position to the given end position (excluded).
defineNextField(int, Type, String) - Method in class org.sadun.text.ffp.LineFormat
Define a field as having the given type and image and being located from the current start position to the given end position (excluded).
defineNextFields(int, int[]) - Method in class org.sadun.text.ffp.LineFormat
Define consecutive fields in the given physical line using a positions array.
defineNextFields(int[]) - Method in class org.sadun.text.ffp.LineFormat
Define consecutive fields using a positions array.

E

EQUAL - Static variable in class org.sadun.text.ffp.CountCondition
Relation constant
EVEN - Static variable in class org.sadun.text.ffp.CountCondition
Relation constant
EchoListener - class org.sadun.text.ffp.EchoListener.
A FlatFileParser.Listener which echoes the parsed data when a LineFormat whose is found whose name matches a regular expression (provided at construction).
EchoListener(String, PrintStream) - Constructor for class org.sadun.text.ffp.EchoListener
Create an EchoListener which echoes lines whose format name matches the given regular expression on the given stream.
EchoListener(String) - Constructor for class org.sadun.text.ffp.EchoListener
Create an EchoListener which echoes lines whose format name matches the given regular expression on System.out.
EchoListener(PrintStream) - Constructor for class org.sadun.text.ffp.EchoListener
Create an EchoListener which echoes every line on the given stream.
EchoListener() - Constructor for class org.sadun.text.ffp.EchoListener
Create an EchoListener which echoes every line on System out.
equals(Object) - Method in class org.sadun.text.ffp.LineFormat.FieldInfo
 
equals(Object) - Method in class org.sadun.text.ffp.Type
Return true if the given object is the same type as this
extract(CharSequence, int, int) - Static method in class org.sadun.text.ffp.LineFormat
An utility method to extracts a portion of a physical line.

F

FFPFactory - class org.sadun.text.ffp.FFPFactory.
This class creates FlatFileParserobjects by loading conditions and line format definitions from properly formatted stream, URL or file.
FFPFactory() - Constructor for class org.sadun.text.ffp.FFPFactory
 
FFPFactory(FFPFactory.FFPStreamParser) - Constructor for class org.sadun.text.ffp.FFPFactory
 
FFPFactory.FFPStreamParser - interface org.sadun.text.ffp.FFPFactory.FFPStreamParser.
This interface allows users to define their own syntax for conditionsand line formatspecifications.
FFPParseException - exception org.sadun.text.ffp.FFPParseException.
The main parsing-related exception.
FFPStreamParseException - exception org.sadun.text.ffp.FFPStreamParseException.
 
FFPStreamParseException(String) - Constructor for class org.sadun.text.ffp.FFPStreamParseException
 
FFPStreamParseException(String, Throwable) - Constructor for class org.sadun.text.ffp.FFPStreamParseException
 
FFPTest - class org.sadun.text.ffp.test.FFPTest.
 
FFPTest() - Constructor for class org.sadun.text.ffp.test.FFPTest
 
FieldDefinitionException - exception org.sadun.text.ffp.FieldDefinitionException.
 
FieldDefinitionException(String) - Constructor for class org.sadun.text.ffp.FieldDefinitionException
 
FlatFileParser - class org.sadun.text.ffp.FlatFileParser.
A parser for flat files.
FlatFileParser() - Constructor for class org.sadun.text.ffp.FlatFileParser
Create a parser with no associated line formats.
FlatFileParser(LineFormat) - Constructor for class org.sadun.text.ffp.FlatFileParser
Creates a parser which parses flat files whose all lines have the given format.
FlatFileParser.AdvancedListener - interface org.sadun.text.ffp.FlatFileParser.AdvancedListener.
Classes implementing this extension of Listener will receive more events on flat file parsing.
FlatFileParser.Condition - interface org.sadun.text.ffp.FlatFileParser.Condition.
An object implementing this interface can decide whether or not the physical line currently available for reading match or not a certain condition, in the FlatFileParser.Condition#holds(int, int, LineReader) method.
FlatFileParser.LineReader - interface org.sadun.text.ffp.FlatFileParser.LineReader.
Objects implementing this interface allow to access the flat file during parsing, from outside the parser.
FlatFileParser.Listener - interface org.sadun.text.ffp.FlatFileParser.Listener.
Classes implementing this interface can be registered in a FlatFileParser (using FlatFileParser#addListener(Listener)) to react to successfully parsed lines in the flat file.
FlatFileParser.UnmatchedLineListener - interface org.sadun.text.ffp.FlatFileParser.UnmatchedLineListener.
Classes implementing this extension of Listener will receive notification about lines where no condition matches on parsing, if the failOnNoMatchingConditions property is false.
FormatOutOfRangeException - exception org.sadun.text.ffp.FormatOutOfRangeException.
An exception raised when parsing a LineFormat and an expected field cannot be found since the line is too short.
formatValuesAsXML(int, String[]) - Method in class org.sadun.text.ffp.LineFormat
An utility method to format a set of values to an XML format, according to this LineFormat.
formatValuesAsXML(String[]) - Method in class org.sadun.text.ffp.LineFormat
An utility method to format a set of values to an XML format, according to this LineFormat.
fromImage(String) - Static method in class org.sadun.text.ffp.LineFormat
Allows to create a LineFormat object directly from an image.
fromImage(String, String) - Static method in class org.sadun.text.ffp.LineFormat
Allows to create a named LineFormat object directly from an image.

G

GREATER - Static variable in class org.sadun.text.ffp.CountCondition
Relation constant
GREATER_OR_EQUAL - Static variable in class org.sadun.text.ffp.CountCondition
Relation constant
getConstant() - Method in class org.sadun.text.ffp.ConstantLineCondition
Return the constant used by this condition.
getEnd() - Method in class org.sadun.text.ffp.LineFormat.FieldInfo
 
getFieldsByCondition() - Method in class org.sadun.text.ffp.FlatFileParser
 
getFieldsCount() - Method in class org.sadun.text.ffp.LineFormat
Return the number of fields in the logical line.
getFieldsCount(int) - Method in class org.sadun.text.ffp.LineFormat
Return the number of fields in the physical line.
getFormat() - Method in class org.sadun.text.ffp.FormatOutOfRangeException
 
getFormat() - Method in class org.sadun.text.ffp.NoAssociatedListenerException
The format that has successfully matched the line.
getFormat() - Method in class org.sadun.text.ffp.TrailingCharactersException
Return the LineFormat which has parsed the line.
getImage() - Method in class org.sadun.text.ffp.LineFormat.FieldInfo
 
getLine() - Method in class org.sadun.text.ffp.FormatOutOfRangeException
 
getLine() - Method in class org.sadun.text.ffp.TrailingCharactersException
Return the line which has trailing characters.
getLineFormat(FlatFileParser.Condition) - Method in interface org.sadun.text.ffp.FFPFactory.FFPStreamParser
Given a condition, return the associated line format.
getLineSeparator() - Method in class org.sadun.text.ffp.FlatFileParser
Return the line separator string used by this parser.
getLineSeparator() - Method in class org.sadun.text.ffp.LineFormat
Return the line separator.
getLineType() - Method in class org.sadun.text.ffp.CountCondition
Return the line type used by this condition (one of CountCondition.LOGICAL_LINES or CountCondition.PHYSICAL_LINES).
getLogicalLinecount() - Method in class org.sadun.text.ffp.NoAssociatedListenerException
The logical line number of the matched line.
getName() - Method in class org.sadun.text.ffp.LineFormat.FieldInfo
 
getName() - Method in class org.sadun.text.ffp.LineFormat
Return the name of this line format.
getPhysicalLineCount() - Method in class org.sadun.text.ffp.NoAssociatedListenerException
The physical line number of the matched line.
getPhysicalLinesCount() - Method in class org.sadun.text.ffp.LineFormat
Return the physical lines count at the moment of call.
getPivotNumber() - Method in class org.sadun.text.ffp.CountCondition
Return the number to use for comparisons (pivot number).
getRelationType() - Method in class org.sadun.text.ffp.CountCondition
Return the relation type used by this condition (one of CountCondition.LOWER, CountCondition.LOWER_OR_EQUAL, CountCondition.EQUAL, CountCondition.GREATER, CountCondition.GREATER_OR_EQUAL, CountCondition.ODD or CountCondition.EVEN).
getStart() - Method in class org.sadun.text.ffp.LineFormat.FieldInfo
 
getTrailing() - Method in class org.sadun.text.ffp.TrailingCharactersException
Return the trailing sequence.
getType() - Method in class org.sadun.text.ffp.LineFormat.FieldInfo
 
getValues() - Method in class org.sadun.text.ffp.NoAssociatedListenerException
 

H

holds(int, int, FlatFileParser.LineReader) - Method in class org.sadun.text.ffp.AndCondition
The conditions are evaluated in the same order given at construction and if one fails, the method returns false.
holds(int, int, FlatFileParser.LineReader) - Method in class org.sadun.text.ffp.ConstantFoundInLineCondition
 
holds(int, int, FlatFileParser.LineReader) - Method in class org.sadun.text.ffp.ConstantLineCondition
Return true if there is one physical line available in the file, and it is identical to the constant provided at construction.
holds(int, int, FlatFileParser.LineReader) - Method in class org.sadun.text.ffp.CountCondition
The condition holds if the physical/logical line count (as defined at construction) has the specified relation type with the pivot number.
holds(int, int, FlatFileParser.LineReader) - Method in interface org.sadun.text.ffp.FlatFileParser.Condition
Return true if a desired logical condition holds.
holds(int, int, FlatFileParser.LineReader) - Method in class org.sadun.text.ffp.MatchingRegexpInLineCondition
Attempt to match the regular expression and line position provided at construction to the physical line.
holds(int, int, FlatFileParser.LineReader) - Method in class org.sadun.text.ffp.NotCondition
The condition given at construction is evaluated: if it fails, this condition holds; otherwise not.
holds(int, int, FlatFileParser.LineReader) - Method in class org.sadun.text.ffp.NullCondition
Return false.
holds(int, int, FlatFileParser.LineReader) - Method in class org.sadun.text.ffp.OrCondition
The conditions are evaluated in the same order given at construction and if one holds, the method returns true.

I

INSTANCE - Static variable in class org.sadun.text.ffp.NullCondition
 
IllegalRangeException - exception org.sadun.text.ffp.IllegalRangeException.
 
IllegalRangeException(CharSequence, int, int) - Constructor for class org.sadun.text.ffp.IllegalRangeException
 
ImageParseException - exception org.sadun.text.ffp.ImageParseException.
 
ImageParseException(String) - Constructor for class org.sadun.text.ffp.ImageParseException
 
InvalidPhysicalLineCountException - exception org.sadun.text.ffp.InvalidPhysicalLineCountException.
 
InvalidPhysicalLineCountException(String, int, int) - Constructor for class org.sadun.text.ffp.InvalidPhysicalLineCountException
 
isAllowLostEvents() - Method in class org.sadun.text.ffp.DispatcherListener
If true, the dispatcher allows parsing events which are not associated to any listener to be ignored; otherwise, events which are not associated to any listener will raise a NoAssociatedListenerException .
isAutoTrimMode() - Method in class org.sadun.text.ffp.FlatFileParser
Return the current state of the auto trim mode.
isFailOnLineParsingError() - Method in class org.sadun.text.ffp.FlatFileParser
Return whether or not the parser should fail when a exception occurs parsing a line, or just emit a warning on the FlatFileParser.LOGGER_CHANNEL_NAME channel.
isFailOnNoMatchingConditions() - Method in class org.sadun.text.ffp.FlatFileParser
Return whether the parser will fail or not if no conditions match a line.
isFailOnTrailingChars() - Method in class org.sadun.text.ffp.LineFormat
Return whether or not parsing must fails if a line is parsed correctly but not all its characters are consumed.
isFastMatchMode() - Method in class org.sadun.text.ffp.FlatFileParser
Return the current state of the the fast match mode.
iterator() - Method in class org.sadun.text.ffp.LineFormat
Return an iterator on this format's LineFormat.FieldInfo set.

J

JMXFFPTest - class org.sadun.text.ffp.test.JMXFFPTest.
 
JMXFFPTest() - Constructor for class org.sadun.text.ffp.test.JMXFFPTest
 

L

LOGGER_CHANNEL_NAME - Static variable in class org.sadun.text.ffp.FlatFileParser
The logger channel used by this package.
LOGICAL_LINES - Static variable in class org.sadun.text.ffp.CountCondition
Constant to indicate that comparisons will occur with logical lines count.
LOWER - Static variable in class org.sadun.text.ffp.CountCondition
Relation constant
LOWER_OR_EQUAL - Static variable in class org.sadun.text.ffp.CountCondition
Relation constant
LineFormat - class org.sadun.text.ffp.LineFormat.
An ojbect of this class holds details of a specific logical line format and can parse it from core memory.
LineFormat(String) - Constructor for class org.sadun.text.ffp.LineFormat
Create a LineFormat with a name, for reading a logical line.
LineFormat() - Constructor for class org.sadun.text.ffp.LineFormat
Create a LineFormat, for reading a logical line.
LineFormat.FieldInfo - class org.sadun.text.ffp.LineFormat.FieldInfo.
A class describing a field.
LineFormatTest - class org.sadun.text.ffp.test.LineFormatTest.
 
LineFormatTest() - Constructor for class org.sadun.text.ffp.test.LineFormatTest
 
lineParsed(LineFormat, int, int, String[]) - Method in class org.sadun.text.ffp.BaseListener
This implementation checks wether the received format name matches the name or regular expression provided at construction, and invokes #onFormatName(String, String[]) if so.
lineParsed(LineFormat, int, int, String[]) - Method in class org.sadun.text.ffp.DispatcherListener
Receive a parsing event and invoke the associated listener, if any.
lineParsed(LineFormat, int, int, String[]) - Method in interface org.sadun.text.ffp.FlatFileParser.Listener
Invoked when a line is successfully parsed.

M

ManagedFlatFileParser - class org.sadun.text.ffp.jmx.ManagedFlatFileParser.
 
ManagedFlatFileParser() - Constructor for class org.sadun.text.ffp.jmx.ManagedFlatFileParser
 
ManagedFlatFileParserMBean - interface org.sadun.text.ffp.jmx.ManagedFlatFileParserMBean.
 
MatchingRegexpInLineCondition - class org.sadun.text.ffp.MatchingRegexpInLineCondition.
A condition that checks a regular expression in a physical line.
MatchingRegexpInLineCondition(int, String, int) - Constructor for class org.sadun.text.ffp.MatchingRegexpInLineCondition
Create a condition which will look for the given constant at the given position of the given physical line in the file.
MatchingRegexpInLineCondition(String, int) - Constructor for class org.sadun.text.ffp.MatchingRegexpInLineCondition
Create a condition which will look for the given regexp at the given position of the next line in the file.
MatchingRegexpInLineCondition(int, String, LineFormat, int) - Constructor for class org.sadun.text.ffp.MatchingRegexpInLineCondition
Create a condition which will look at the value of the nth field of the given physical line in the given LineFormat object.
MatchingRegexpInLineCondition(String, LineFormat, int) - Constructor for class org.sadun.text.ffp.MatchingRegexpInLineCondition
Create a condition which will look at the value of the nth field of the given physical line in the given LineFormat object.
MultipleMatchingConditionsException - exception org.sadun.text.ffp.MultipleMatchingConditionsException.
 
MultipleMatchingConditionsException(FlatFileParser.Condition[], String) - Constructor for class org.sadun.text.ffp.MultipleMatchingConditionsException
 
main(String[]) - Static method in class org.sadun.text.ffp.FFPFactory
 
main(String[]) - Static method in class org.sadun.text.ffp.test.DBInsertionListenerTest
 
main(String[]) - Static method in class org.sadun.text.ffp.test.FFPTest
 
main(String[]) - Static method in class org.sadun.text.ffp.test.JMXFFPTest
 
main(String[]) - Static method in class org.sadun.text.ffp.test.LineFormatTest
 
main(String[]) - Static method in class org.sadun.text.ffp.test.RotationalCharBufferTest
 
main(String[]) - Static method in class org.sadun.text.ffp.test.Test
 
main(String[]) - Static method in class org.sadun.text.ffp.version.Version
 
makeConstantImage(String) - Static method in class org.sadun.text.ffp.LineFormat
Return a string constant translated to the image syntax recognized by this class.

N

NUMERIC - Static variable in class org.sadun.text.ffp.Type
The field is numeric
NoAssociatedListenerException - exception org.sadun.text.ffp.NoAssociatedListenerException.
An exception raised when a DispatcherListeneris used to dispatch parsing events from a flat file parser, its {@link
NoAssociatedListenerException(LineFormat, int, int, String[]) - Constructor for class org.sadun.text.ffp.NoAssociatedListenerException
 
NoMatchingConditionException - exception org.sadun.text.ffp.NoMatchingConditionException.
 
NoMatchingConditionException(int, String) - Constructor for class org.sadun.text.ffp.NoMatchingConditionException
 
NotCondition - class org.sadun.text.ffp.NotCondition.
A FlatFileParser.Condition that holds if and only if the condition passed at construction does not hold.
NotCondition(FlatFileParser.Condition) - Constructor for class org.sadun.text.ffp.NotCondition
Create a condition that negates the given one.
NullCondition - class org.sadun.text.ffp.NullCondition.
A condition that never holds.
noMatchingCondition(int, String) - Method in interface org.sadun.text.ffp.FlatFileParser.UnmatchedLineListener
Invoked when the failOnNoMatchingConditions property is false and no matching conditions are found for a certain line.

O

ODD - Static variable in class org.sadun.text.ffp.CountCondition
Relation constant
OrCondition - class org.sadun.text.ffp.OrCondition.
A FlatFileParser.Condition that holds if and only if one the conditions it groups hold.
OrCondition(FlatFileParser.Condition, FlatFileParser.Condition) - Constructor for class org.sadun.text.ffp.OrCondition
Create an OrCondition based on two conditions
OrCondition(FlatFileParser.Condition[]) - Constructor for class org.sadun.text.ffp.OrCondition
Create an OrCondition based on an array of conditions
onFormatName(LineFormat, int, int, String[]) - Method in class org.sadun.text.ffp.BaseListener
Invoked when a line whose format name matches the name or regexp provided at construction is found.
onFormatName(LineFormat, int, int, String[]) - Method in class org.sadun.text.ffp.EchoListener
 
onFormatName(LineFormat, int, int, String[]) - Method in class org.sadun.text.ffp.test.DBInsertionListener
 
org.sadun.text.ffp - package org.sadun.text.ffp
The main FFP package.
org.sadun.text.ffp.jmx - package org.sadun.text.ffp.jmx
 
org.sadun.text.ffp.test - package org.sadun.text.ffp.test
A package containing a regression test suite.
org.sadun.text.ffp.version - package org.sadun.text.ffp.version
 

P

PHYSICAL_LINES - Static variable in class org.sadun.text.ffp.CountCondition
Constant to indicate that comparisons will occur with physical lines count.
parse(File) - Method in class org.sadun.text.ffp.FlatFileParser
Parse the text from in the given file.
parse(Reader) - Method in class org.sadun.text.ffp.FlatFileParser
Parse the text from the given reader.
parse(String) - Method in class org.sadun.text.ffp.LineFormat
Parse the given line basing on the format.
parse(String, boolean) - Method in class org.sadun.text.ffp.LineFormat
Parse the given line basing on the format.
parseStream(InputStream) - Method in interface org.sadun.text.ffp.FFPFactory.FFPStreamParser
Interpret the stream and extract conditions and associated line formats, storing them.
parseToXml(String) - Method in class org.sadun.text.ffp.LineFormat
An utility method, which parses a line, and returns its XML fragment representation.
parseToXml(String, boolean) - Method in class org.sadun.text.ffp.LineFormat
An utility method, which parses a line, and returns its XML fragment representation.
parsingStarted() - Method in interface org.sadun.text.ffp.FlatFileParser.AdvancedListener
Invoked when the parser has started
parsingStarted() - Method in class org.sadun.text.ffp.test.DBInsertionListener
 
parsingTerminated(boolean) - Method in interface org.sadun.text.ffp.FlatFileParser.AdvancedListener
Invoked when the parser has terminated
parsingTerminated(boolean) - Method in class org.sadun.text.ffp.test.DBInsertionListener
 

R

RotationalCharBufferTest - class org.sadun.text.ffp.test.RotationalCharBufferTest.
 
RotationalCharBufferTest() - Constructor for class org.sadun.text.ffp.test.RotationalCharBufferTest
 
readLine() - Method in interface org.sadun.text.ffp.FlatFileParser.LineReader
Read a physical line from the file.
readPhysicalLines(FlatFileParser.LineReader, int) - Method in class org.sadun.text.ffp.ConstantFoundInLineCondition
Read n physical lines and returns the n-th.
readPhysicalLines(FlatFileParser.LineReader, int) - Method in class org.sadun.text.ffp.MatchingRegexpInLineCondition
Read n physical lines and returns the n-th.
removeListener(FlatFileParser.Listener) - Method in class org.sadun.text.ffp.FlatFileParser
Remove the given listener from the registered listeners set.
reset() - Method in interface org.sadun.text.ffp.FFPFactory.FFPStreamParser
Reset the parser so that a new parsing can occur.

S

setAllowLostEvents(boolean) - Method in class org.sadun.text.ffp.DispatcherListener
Set whether or not true, the dispatcher allows parsing events which are not associated to any listener to be ignored.
setAutoTrimMode(boolean) - Method in class org.sadun.text.ffp.FlatFileParser
Set the auto trim mode.
setFailOnLineParsingError(boolean) - Method in class org.sadun.text.ffp.FlatFileParser
Set whether or not the parser should fail when a exception occurs parsing a line, or just emit a warning on the FlatFileParser.LOGGER_CHANNEL_NAME channel.
setFailOnNoMatchingConditions(boolean) - Method in class org.sadun.text.ffp.FlatFileParser
Set whether the parser will fail or not if no conditions match a line.
setFailOnTrailingChars(boolean) - Method in class org.sadun.text.ffp.LineFormat
Set whether or not parsing must fails if a line is parsed correctly but not all its characters are consumed.
setFastMatchMode(boolean) - Method in class org.sadun.text.ffp.FlatFileParser
Set the current state of the the fast match mode.
setLineSeparator(String) - Method in class org.sadun.text.ffp.FlatFileParser
Set the line separator string used by this parser.
setLineSeparator(String) - Method in class org.sadun.text.ffp.LineFormat
Set the line separator.
setUp() - Method in class org.sadun.text.ffp.test.DBInsertionListenerTest
 
setUp() - Method in class org.sadun.text.ffp.test.FFPTest
 
setUp() - Method in class org.sadun.text.ffp.test.JMXFFPTest
 
setUp() - Method in class org.sadun.text.ffp.test.LineFormatTest
 
setUp() - Method in class org.sadun.text.ffp.test.RotationalCharBufferTest
 
setupBetFor00(FlatFileParser) - Method in class org.sadun.text.ffp.test.FFPTest
 
slistFormats(boolean) - Method in class org.sadun.text.ffp.jmx.ManagedFlatFileParser
 
slistFormats() - Method in class org.sadun.text.ffp.jmx.ManagedFlatFileParser
 
slistFormats() - Method in interface org.sadun.text.ffp.jmx.ManagedFlatFileParserMBean
 

T

Test - class org.sadun.text.ffp.test.Test.
A test class which reads a mixed-line layout: a one-line header, followed by an arbirary number of data lines, followed by a single line containing EOF.
Test() - Constructor for class org.sadun.text.ffp.test.Test
 
TrailingCharactersException - exception org.sadun.text.ffp.TrailingCharactersException.
An exception raised when a line is parsed correctly by a LineFormat but not all its characters are consumed when the parsing is terminated.
TrailingCharactersException(CharSequence, LineFormat, CharSequence) - Constructor for class org.sadun.text.ffp.TrailingCharactersException
 
Type - class org.sadun.text.ffp.Type.
This class declares the field types recognized by LineFormat and exposes them via public constant members.
Type(int, String) - Constructor for class org.sadun.text.ffp.Type
 
test00 - Variable in class org.sadun.text.ffp.test.FFPTest
 
test00Data - Variable in class org.sadun.text.ffp.test.FFPTest
 
test00format - Variable in class org.sadun.text.ffp.test.FFPTest
 
testAddLeft() - Method in class org.sadun.text.ffp.test.RotationalCharBufferTest
 
testAddRight() - Method in class org.sadun.text.ffp.test.RotationalCharBufferTest
 
testDBInsertion() - Method in class org.sadun.text.ffp.test.DBInsertionListenerTest
 
testDispatch() - Method in class org.sadun.text.ffp.test.FFPTest
 
testIncomplete() - Method in class org.sadun.text.ffp.test.RotationalCharBufferTest
 
testParse() - Method in class org.sadun.text.ffp.test.LineFormatTest
 
testParseAsXML() - Method in class org.sadun.text.ffp.test.FFPTest
 
testParseLine() - Method in class org.sadun.text.ffp.test.FFPTest
 
testParseLineNoFail() - Method in class org.sadun.text.ffp.test.FFPTest
 
testParseLineNoMatch() - Method in class org.sadun.text.ffp.test.FFPTest
 
testParseToXML() - Method in class org.sadun.text.ffp.test.LineFormatTest
 
testSListFormats() - Method in class org.sadun.text.ffp.test.JMXFFPTest
 
toString() - Method in class org.sadun.text.ffp.AndCondition
 
toString() - Method in class org.sadun.text.ffp.ConstantFoundInLineCondition
 
toString() - Method in class org.sadun.text.ffp.ConstantLineCondition
 
toString() - Method in class org.sadun.text.ffp.CountCondition
 
toString() - Method in interface org.sadun.text.ffp.FlatFileParser.Condition
Return a human-readable description of the condition.
toString() - Method in class org.sadun.text.ffp.LineFormat.FieldInfo
 
toString() - Method in class org.sadun.text.ffp.LineFormat
Return a human-readable description of the format.
toString() - Method in class org.sadun.text.ffp.MatchingRegexpInLineCondition
 
toString() - Method in class org.sadun.text.ffp.OrCondition
 
toString() - Method in class org.sadun.text.ffp.Type
Return a description of the type.

U

UNDEFINED - Static variable in class org.sadun.text.ffp.Type
Declares that no information is known about the field

V

ValidationException - exception org.sadun.text.ffp.ValidationException.
An exception raised if a field value does not match its declared type.
ValidationException(CharSequence, LineFormat.FieldInfo, String) - Constructor for class org.sadun.text.ffp.ValidationException
 
Version - class org.sadun.text.ffp.version.Version.
This class is automatically generated by the org.sadun.util.ant.Version ANT task to encapsulate version information.
Version() - Constructor for class org.sadun.text.ffp.version.Version
 
Version(int, int, int) - Constructor for class org.sadun.text.ffp.version.Version
 

A B C D E F G H I J L M N O P R S T U V
Copyright (C) 2003,2004 dr. Cristiano Sadun