com.aragost.javahg.commands
Class CatCommand
java.lang.Object
com.aragost.javahg.internals.AbstractCommand
com.aragost.javahg.commands.flags.CatCommandFlags
com.aragost.javahg.commands.CatCommand
public class CatCommand
- extends CatCommandFlags
Command class for executing hg cat. Set flags from
CatCommandFlags
and call theexecute(java.lang.String)
method.
Methods inherited from class com.aragost.javahg.internals.AbstractCommand |
cancel, clear, cmdAppend, cmdAppend, cmdAppend, cmdAppend, cmdAppend, doneHook, getErrorString, getRepository, getReturnCode, isSuccessful, launchIterator, launchStream, launchString, needsInputLine, reopenOutputChannelStream, sendLine, toString, withDebugAndChangesetStyle, withDebugFlag |
CatCommand
public CatCommand(Repository repository)
- Parameters:
repository
- the repository associated with this command.
execute
public InputStream execute(String file)
throws IOException
- Parameters:
file
- the file.
- Returns:
- the data in the file. The stream must be emptied
completely before attempting to execute a new command.
- Throws:
IOException
Copyright © 2011-2013 aragost Trifork ag. All Rights Reserved.