net.sf.jpkgmk.pkgmap
Class PkgMapEntryFile.PkgMapEntryFileParser

java.lang.Object
  extended by net.sf.jpkgmk.pkgmap.AbstractPkgMapEntryParser
      extended by net.sf.jpkgmk.pkgmap.PkgMapEntryFile.PkgMapEntryFileParser
All Implemented Interfaces:
PkgMapEntryParser
Direct Known Subclasses:
PkgMapEntryFile.PkgMapEntryDirectoryParser, PkgMapEntryLink.PkgMapEntryLinkParser
Enclosing class:
PkgMapEntryFile

public static class PkgMapEntryFile.PkgMapEntryFileParser
extends AbstractPkgMapEntryParser


Constructor Summary
PkgMapEntryFile.PkgMapEntryFileParser()
           
 
Method Summary
protected  PkgMapEntry createPkgMapEntry(java.lang.Integer part, PkgMapEntryType type, java.lang.String fileClass, java.lang.String path, java.lang.String mode, java.lang.String owner, java.lang.String group, java.lang.Long size, java.lang.Long chksum, java.lang.Long modtime)
           
protected  PkgMapEntry parseItems(java.lang.String[] items, java.lang.Integer part, PkgMapEntryType type, int currentIndex)
          Invoked by the AbstractPkgMapEntryParser.parse(String) method to parse the items of a line.
 
Methods inherited from class net.sf.jpkgmk.pkgmap.AbstractPkgMapEntryParser
getCurrentLine, parse, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PkgMapEntryFile.PkgMapEntryFileParser

public PkgMapEntryFile.PkgMapEntryFileParser()
Method Detail

parseItems

protected PkgMapEntry parseItems(java.lang.String[] items,
                                 java.lang.Integer part,
                                 PkgMapEntryType type,
                                 int currentIndex)
Description copied from class: AbstractPkgMapEntryParser
Invoked by the AbstractPkgMapEntryParser.parse(String) method to parse the items of a line. The given array of items represents the whole line split up into strings.

Specified by:
parseItems in class AbstractPkgMapEntryParser
Parameters:
items - All items of this line
part - The pre-parsed value for the optional "part" field
type - The pre-parsed value for the mandatory "type" character field
currentIndex - 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:

createPkgMapEntry

protected PkgMapEntry createPkgMapEntry(java.lang.Integer part,
                                        PkgMapEntryType type,
                                        java.lang.String fileClass,
                                        java.lang.String path,
                                        java.lang.String mode,
                                        java.lang.String owner,
                                        java.lang.String group,
                                        java.lang.Long size,
                                        java.lang.Long chksum,
                                        java.lang.Long modtime)


Copyright © 2007-2008. All Rights Reserved.