|
Cryptix OpenPGP | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcryptix.message.MessageFactory
Message factory class that can generate Message objects from their encodings.
Constructor Summary | |
protected |
MessageFactory(MessageFactorySpi builderSpi,
java.security.Provider provider,
java.lang.String format)
Create a new MessageFactory object containing the given SPI object. |
Method Summary | |
Message |
generateMessage(java.io.InputStream in)
Generates a message from an input stream. |
java.util.Collection |
generateMessages(java.io.InputStream in)
Generates a (possible empty) collection of messages from an input stream. |
java.lang.String |
getFormat()
Returns the name of the format of this object. |
static MessageFactory |
getInstance(java.lang.String format)
Returns a MessageFactory that implements the given format. |
static MessageFactory |
getInstance(java.lang.String format,
java.security.Provider provider)
Returns a MessageFactory from the given provider that implements the given format. |
static MessageFactory |
getInstance(java.lang.String format,
java.lang.String provider)
Returns a MessageFactory from the given provider that implements the given format. |
java.security.Provider |
getProvider()
Returns the provider of this object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected MessageFactory(MessageFactorySpi builderSpi, java.security.Provider provider, java.lang.String format)
Method Detail |
public static MessageFactory getInstance(java.lang.String format) throws java.security.NoSuchAlgorithmException
format
- the message format. "OpenPGP", for example.
java.security.NoSuchAlgorithmException
public static MessageFactory getInstance(java.lang.String format, java.lang.String provider) throws java.security.NoSuchAlgorithmException, java.security.NoSuchProviderException
format
- the message format. "OpenPGP", for example.provider
- the provider name.
java.security.NoSuchAlgorithmException
java.security.NoSuchProviderException
public static MessageFactory getInstance(java.lang.String format, java.security.Provider provider) throws java.security.NoSuchAlgorithmException
format
- the message format. "OpenPGP", for example.provider
- the provider object.
java.security.NoSuchAlgorithmException
public final java.security.Provider getProvider()
public final java.lang.String getFormat()
public final java.util.Collection generateMessages(java.io.InputStream in) throws MessageException, java.io.IOException
Note: the entire inputstream will be read when the inputstream does not support the mark() and reset() methods.
MessageException
java.io.IOException
public final Message generateMessage(java.io.InputStream in) throws MessageException, java.io.IOException
Note: the entire inputstream will be read when the inputstream does not support the mark() and reset() methods.
MessageException
- on a variety of format specific problems.
java.io.IOException
|
Cryptix OpenPGP | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |