net.sf.jpkgmk.pkgmap
Class AbstractPkgMapEntryParser
java.lang.Object
net.sf.jpkgmk.pkgmap.AbstractPkgMapEntryParser
- All Implemented Interfaces:
- PkgMapEntryParser
- Direct Known Subclasses:
- PkgMapEntryDevice.PkgMapEntryDeviceParser, PkgMapEntryFile.PkgMapEntryFileParser, PkgMapEntryInfo.PkgMapEntryInfoParser
public abstract class AbstractPkgMapEntryParser
- extends java.lang.Object
- implements PkgMapEntryParser
- Since:
- 1.0
- Version:
- $Revision: 2 $ $Date: 2008-08-20 21:14:19 +0200 (Mi, 20 Aug 2008) $
- Author:
- gommma (gommma AT users.sourceforge.net), Last changed by: $Author: gommma $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
AbstractPkgMapEntryParser
public AbstractPkgMapEntryParser()
- Default constructor
getCurrentLine
public java.lang.String getCurrentLine()
- Returns:
- Returns the current line being parsed. Is set when the method
parse(String)
is entered and reset when the method is leaved.
parse
public final PkgMapEntry parse(java.lang.String line)
- Specified by:
parse
in interface PkgMapEntryParser
parseItems
protected abstract PkgMapEntry parseItems(java.lang.String[] items,
java.lang.Integer part,
PkgMapEntryType type,
int currentIndex)
- Invoked by the
parse(String)
method to parse
the items of a line. The given array of items represents the whole line split up into strings.
- Parameters:
items
- All items of this linepart
- The pre-parsed value for the optional "part" fieldtype
- The pre-parsed value for the mandatory "type" character fieldcurrentIndex
- The current index located after the "type" field already parsed. This is the index where
the parsing should be continued by the concrete implementations.
- Returns:
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright © 2007-2008. All Rights Reserved.