org.nuxeo.runtime.deployment.preprocessor.install.commands
Class MkfileCommand
java.lang.Object
org.nuxeo.runtime.deployment.preprocessor.install.commands.MkfileCommand
- All Implemented Interfaces:
- Command
public class MkfileCommand
- extends Object
- implements Command
- Author:
- Bogdan Stefanescu
Constructor Summary |
MkfileCommand(Path path,
byte[] content)
Constructor for mkfile command. |
path
protected final Path path
content
protected final byte[] content
MkfileCommand
public MkfileCommand(Path path,
byte[] content)
- Constructor for mkfile command.
- Parameters:
path
- the path relative to the root containercontent
- the file content as an array of bytes
exec
public void exec(CommandContext ctx)
throws IOException
- Specified by:
exec
in interface Command
- Throws:
IOException
toString
public String toString()
- Overrides:
toString
in class Object
toString
public String toString(CommandContext ctx)
- Specified by:
toString
in interface Command
Copyright © 2010 Nuxeo SAS. All Rights Reserved.