Class WriteToFileMultiPassStrategy

  • All Implemented Interfaces:
    MultiPassStrategy

    public class WriteToFileMultiPassStrategy
    extends java.lang.Object
    implements MultiPassStrategy
    File-based multi-pass strategy. When processing the signed data the first time, the data is being written out into a file. For the second pass, that file is being read again.
    • Constructor Detail

      • WriteToFileMultiPassStrategy

        public WriteToFileMultiPassStrategy​(java.io.File file)
        Create a MultiPassStrategy which writes data to a file. Note that getMessageOutputStream() will create the file if necessary.
        Parameters:
        file - file to write the data to and read from
    • Method Detail

      • getMessageOutputStream

        public java.io.OutputStream getMessageOutputStream()
                                                    throws java.io.IOException
        Description copied from interface: MultiPassStrategy
        Provide an OutputStream into which the signed data can be read into.
        Specified by:
        getMessageOutputStream in interface MultiPassStrategy
        Returns:
        output stream
        Throws:
        java.io.IOException - io error