public interface CommandUnwrapper
Modifier and Type | Method and Description |
---|---|
Command |
unwrapCommand(InputStream wrappedCommandStream,
IProgressMonitor monitor)
Starts decoding a DER encoded stream, i.e.
|
Command unwrapCommand(InputStream wrappedCommandStream, IProgressMonitor monitor) throws IOException, InvalidCommandFormatException
It creates a Command
from the specified stream. Command contents can be accessed from the
Command.getCommandInputStream()
method. The verification of the stream is triggered ONLY when the stream
has been entirely consumed.
wrappedCommandStream
- DER encoded stream.monitor
- the progress monitor to use for reporting progress to the user. It is the caller's responsibility to
call done() on the given monitor. Accepts null
, indicating that no progress should be
reported and that the operation cannot be cancelled.IOException
- if an I/O error occurs.InvalidCommandFormatException
- if an error occurs while unwrapping the command.