public class MkfileCommand extends Object implements Command
Constructor and Description |
---|
MkfileCommand(Path path,
byte[] content)
Constructor for mkfile command.
|
public MkfileCommand(Path path, byte[] content)
path
- the path relative to the root containercontent
- the file content as an array of bytespublic void exec(CommandContext ctx) throws IOException
exec
in interface Command
IOException
public String toString(CommandContext ctx)
Copyright © 2013 Nuxeo SA. All Rights Reserved.