com.aragost.javahg.commands
Class CatCommand

java.lang.Object
  extended by com.aragost.javahg.internals.AbstractCommand
      extended by com.aragost.javahg.commands.flags.CatCommandFlags
          extended by 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.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.aragost.javahg.internals.AbstractCommand
AbstractCommand.State
 
Constructor Summary
CatCommand(Repository repository)
           
 
Method Summary
 InputStream execute(String file)
           
 
Methods inherited from class com.aragost.javahg.commands.flags.CatCommandFlags
decode, exclude, getCommandName, include, on, rev
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CatCommand

public CatCommand(Repository repository)
Parameters:
repository - the repository associated with this command.
Method Detail

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.