org.bouncycastle.openpgp
Class PGPLiteralDataGenerator
java.lang.Object
|
+--org.bouncycastle.openpgp.PGPLiteralDataGenerator
- public class PGPLiteralDataGenerator
- extends java.lang.Object
- implements CompressionAlgorithmTags, PacketTags
Class for producing literal data packets.
Fields inherited from interface org.bouncycastle.bcpg.PacketTags |
COMPRESSED_DATA,
EXPIRIMENTAL_1,
EXPIRIMENTAL_2,
EXPIRIMENTAL_3,
EXPIRIMENTAL_4,
LITERAL_DATA,
MARKER,
MOD_DETECTION_CODE,
ONE_PASS_SIGNATURE,
PUBLIC_KEY,
PUBLIC_KEY_ENC_SESSION,
PUBLIC_SUBKEY,
RESERVED,
SECRET_KEY,
SECRET_SUBKEY,
SIGNATURE,
SYM_ENC_INTEGRITY_PRO,
SYMMETRIC_KEY_ENC,
SYMMETRIC_KEY_ENC_SESSION,
TRUST,
USER_ATTRIBUTE,
USER_ID |
Method Summary |
void |
close()
Close the literal data packet. |
java.io.OutputStream |
open(java.io.OutputStream out,
char format,
java.io.File file)
Open a literal data packet for the passed in File object, returning
an output stream for saving the file contents. |
java.io.OutputStream |
open(java.io.OutputStream out,
char format,
java.lang.String name,
long length,
java.util.Date modificationTime)
Open a literal data packet, returning a stream to store the data inside
the packet. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
PGPLiteralDataGenerator
public PGPLiteralDataGenerator()
open
public java.io.OutputStream open(java.io.OutputStream out,
char format,
java.lang.String name,
long length,
java.util.Date modificationTime)
throws java.io.IOException
- Open a literal data packet, returning a stream to store the data inside
the packet.
- Parameters:
out
- the stream we want the packet informat
- the format we are usingname
- the name of the "file"length
- the length of the data we will writemodificationTime
- the time of last modification we want stored.
open
public java.io.OutputStream open(java.io.OutputStream out,
char format,
java.io.File file)
throws java.io.IOException
- Open a literal data packet for the passed in File object, returning
an output stream for saving the file contents.
- Parameters:
out
- format
- file
- - Returns:
- OutputStream
- Throws:
- java.io.IOException -
close
public void close()
throws java.io.IOException
- Close the literal data packet.
- Throws:
- java.io.IOException -