Welcome to mirror list, hosted at ThFree Co, Russian Federation.

InputStreamPacket.java « bcpg « spongycastle « org « java « main « src « pg - gitlab.com/quite/humla-spongycastle.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: e399c4b7c107a8526568fbc27f2c4493a13dc43c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
package org.spongycastle.bcpg;

/**
 * A block of data associated with other packets in a PGP object stream.
 */
public class InputStreamPacket
    extends Packet
{
    private BCPGInputStream        in;

    public InputStreamPacket(
        BCPGInputStream  in)
    {
        this.in = in;
    }

    /**
     * Obtains an input stream to read the contents of the packet.
     * <p/>
     * Note: you can only read from this once...
     *
     * @return the data in this packet.
     */
    public BCPGInputStream getInputStream()
    {
        return in;
    }
}