Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Cryptix OpenPGP
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## cryptix.message.stream
Class LiteralMessageOutputStream

    java.lang.Object
      java.io.OutputStream
          cryptix.message.stream.MessageOutputStream
              cryptix.message.stream.LiteralMessageOutputStream

public final class LiteralMessageOutputStream
extends MessageOutputStream

Class that encapsulates a generic data stream into a stream of a specific format.

See it as some kind of format specific container for literal data, after which the stream becomes ready for handling by other cryptographic primitives, like signing by a SignedMessageOutputStream or encryption by an EncryptedMessageOutputStream (or both).

Version:
  $Revision: 1.1 $
Author:
  Edwin Woudt

Field Summary

Fields inherited from class cryptix.message.stream.MessageOutputStream
`spi`

Constructor Summary
`protected` | `LiteralMessageOutputStream(MessageOutputStreamSpi spi, java.security.Provider provider, java.lang.String format)` Create a new LiteralMessageOutputStream object containing the given SPI object.

Method Summary
`static LiteralMessageOutputStream` | `getInstance(java.lang.String format)` Returns an LiteralMessageOutputStream that implements the given format.
`static LiteralMessageOutputStream` | `getInstance(java.lang.String format, java.security.Provider provider)` Returns an LiteralMessageOutputStream from the given provider that implements the given format.
`static LiteralMessageOutputStream` | `getInstance(java.lang.String format, java.lang.String provider)` Returns an LiteralMessageOutputStream from the given provider that implements the given format.

Methods inherited from class cryptix.message.stream.MessageOutputStream
`close, flush, getFormat, getProvider, getSpi, init, setAttribute, write, write, write`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### LiteralMessageOutputStream

    protected LiteralMessageOutputStream(MessageOutputStreamSpi spi,
                                         java.security.Provider provider,
                                         java.lang.String format)

  Create a new LiteralMessageOutputStream object containing the given SPI object.

Method Detail

### getInstance

    public static LiteralMessageOutputStream getInstance(java.lang.String format)
                                                  throws java.security.NoSuchAlgorithmException

  Returns an LiteralMessageOutputStream that implements the given format.

  Throws:
    `java.security.NoSuchAlgorithmException`

### getInstance

    public static LiteralMessageOutputStream getInstance(java.lang.String format,
                                                         java.lang.String provider)
                                                  throws java.security.NoSuchAlgorithmException,
                                                         java.security.NoSuchProviderException

  Returns an LiteralMessageOutputStream from the given provider that implements the given format.

  Throws:
    `java.security.NoSuchAlgorithmException`
    `java.security.NoSuchProviderException`

### getInstance

    public static LiteralMessageOutputStream getInstance(java.lang.String format,
                                                         java.security.Provider provider)
                                                  throws java.security.NoSuchAlgorithmException

  Returns an LiteralMessageOutputStream from the given provider that implements the given format.

  Throws:
    `java.security.NoSuchAlgorithmException`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Cryptix OpenPGP
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright (C) 1999-2003 The Cryptix Foundation Ltd.