|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.springsource.util.osgi.manifest.BundleManifestFactory
public class BundleManifestFactory
This interface provides factory methods for creating empty bundle manifests and empty instances of the more complex bundle headers.
Concurrent Semantics
Constructor Summary | |
---|---|
BundleManifestFactory()
|
Method Summary | |
---|---|
static BundleManifest |
createBundleManifest()
Creates a new, empty BundleManifest . |
static BundleManifest |
createBundleManifest(java.util.Dictionary<java.lang.String,java.lang.String> headers)
Creates a new BundleManifest derived from the supplied Dictionary of bundle manifest headers. |
static BundleManifest |
createBundleManifest(java.util.Dictionary<java.lang.String,java.lang.String> headers,
ParserLogger parserLogger)
Creates a new BundleManifest derived from the supplied Dictionary of bundle manifest headers. |
static BundleManifest |
createBundleManifest(ManifestContents manifestContents,
ParserLogger parserLogger)
|
static BundleManifest |
createBundleManifest(ParserLogger parserLogger)
Creates a new, empty BundleManifest . |
static BundleManifest |
createBundleManifest(java.io.Reader reader)
Creates a new BundleManifest , reading its contents from the supplied Reader . |
static BundleManifest |
createBundleManifest(java.io.Reader reader,
ParserLogger parserLogger)
Creates a new BundleManifest , reading its contents from the supplied Reader The supplied
ParserLogger will be used to report problems encountered during parsing. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BundleManifestFactory()
Method Detail |
---|
public static BundleManifest createBundleManifest()
BundleManifest
.
BundleManifest
.public static BundleManifest createBundleManifest(ParserLogger parserLogger)
BundleManifest
.
parserLogger
- The parser logger to use when creating new headers in the manifest
BundleManifest
.public static BundleManifest createBundleManifest(java.util.Dictionary<java.lang.String,java.lang.String> headers)
BundleManifest
derived from the supplied Dictionary
of bundle manifest headers.
headers
- The Dictionary
of headers
BundleManifest
derived from the Dictionary
.public static BundleManifest createBundleManifest(java.util.Dictionary<java.lang.String,java.lang.String> headers, ParserLogger parserLogger)
BundleManifest
derived from the supplied Dictionary
of bundle manifest headers. The
supplied ParserLogger
will be used to report problems encountered during parsing.
headers
- The Dictionary
of headersparserLogger
- The ParserLogger
to be used to report parsing problems.
BundleManifest
derived from the Dictionary
.public static BundleManifest createBundleManifest(ManifestContents manifestContents, ParserLogger parserLogger)
public static BundleManifest createBundleManifest(java.io.Reader reader, ParserLogger parserLogger) throws java.io.IOException
BundleManifest
, reading its contents from the supplied Reader
The supplied
ParserLogger
will be used to report problems encountered during parsing.
reader
- The Reader
of headersparserLogger
- The ParserLogger
to be used to report parsing problems.
BundleManifest
populated by reading the Reader
.
java.io.IOException
- if an error occurs reading the supplied Reader
.public static BundleManifest createBundleManifest(java.io.Reader reader) throws java.io.IOException
BundleManifest
, reading its contents from the supplied Reader
.
reader
- The Reader
of headers
BundleManifest
populated by reading the Reader
.
java.io.IOException
- if an error occurs reading the supplied Reader
.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |