Class InMemoryMultiPassStrategy

java.lang.Object
org.pgpainless.decryption_verification.cleartext_signatures.InMemoryMultiPassStrategy
All Implemented Interfaces:
MultiPassStrategy

public class InMemoryMultiPassStrategy extends Object implements MultiPassStrategy
Implementation of the MultiPassStrategy. This class keeps the read data in memory by caching the data inside a ByteArrayOutputStream. Note, that this class is suitable and efficient for processing small amounts of data. For larger data like encrypted files, use of the WriteToFileMultiPassStrategy is recommended to prevent OutOfMemoryErrors and other issues.