com.springsource.util.parser.manifest
Interface ManifestParser

All Known Implementing Classes:
RecoveringManifestParser

public interface ManifestParser

Strategy for parsing manifests. The only format enforced is that defined for regular JDK manifests.

Concurrent Semantics
This class is thread safe.

Author:
Andy Clement

Method Summary
 boolean foundProblems()
           
 java.util.List<ManifestProblem> getProblems()
           
 ManifestContents parse(java.io.Reader manifestReader)
          Parse a manifest from the supplied reader.
 ManifestContents parse(java.lang.String manifestData)
          Parse an input string of data as a manifest.
 void setTerminateAfterMainSection(boolean shouldTerminate)
           
 

Method Detail

parse

ManifestContents parse(java.lang.String manifestData)
Parse an input string of data as a manifest.

Parameters:
manifestData -
Returns:
manifest contents

parse

ManifestContents parse(java.io.Reader manifestReader)
                       throws java.io.IOException
Parse a manifest from the supplied reader.

Parameters:
manifestReader -
Returns:
ManifestContents
Throws:
java.io.IOException - if there is a problem with the Reader

foundProblems

boolean foundProblems()
Returns:
true if problems were found during parsing

getProblems

java.util.List<ManifestProblem> getProblems()
Returns:
the list of problems that occurred during parsing

setTerminateAfterMainSection

void setTerminateAfterMainSection(boolean shouldTerminate)