public class MkfileCommand extends Object implements Command
| Modifier and Type | Field and Description |
|---|---|
protected byte[] |
content |
protected Path |
path |
| Constructor and Description |
|---|
MkfileCommand(Path path,
byte[] content)
Constructor for mkfile command.
|
| Modifier and Type | Method and Description |
|---|---|
void |
exec(CommandContext ctx) |
String |
toString() |
String |
toString(CommandContext ctx) |
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 CommandIOExceptionpublic String toString(CommandContext ctx)
Copyright © 2016 Nuxeo SA. All rights reserved.