public interface CommandUnwrapper
Modifier and Type | Method and Description |
---|---|
Command |
unwrapCommand(java.io.InputStream wrappedCommandStream,
org.eclipse.core.runtime.IProgressMonitor monitor)
Starts decoding a DER encoded stream, i.e.
|
Command unwrapCommand(java.io.InputStream wrappedCommandStream, org.eclipse.core.runtime.IProgressMonitor monitor) throws java.io.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.java.io.IOException
- if an I/O error occurs.InvalidCommandFormatException
- if an error occurs while unwrapping the command.