Class SvnCat

All Implemented Interfaces:
ISvnOperationOptionsProvider

public class SvnCat extends SvnOperation<Void>
Represents cat operation. Outputs the content of file identified by target and revision to the output streams.

The actual node revision selected is determined by the target as it exists in target's pegRevision. If target is URL and its pegRevision is SVNRevision.UNDEFINED, then it defaults to SVNRevision.HEAD. If target is local and its pegRevision is SVNRevision.UNDEFINED, then it defaults to SVNRevision.WORKING.

If revision is one of:

then the file contents are taken from the working copy file item (no network connection is needed). Otherwise the file item's contents are taken from the repository at a particular revision. SvnOperation.run() throws SVNException in the following cases:
Version:
1.7
  • Field Details

    • expandKeywords

      private boolean expandKeywords
    • output

      private OutputStream output
  • Constructor Details

  • Method Details

    • isExpandKeywords

      public boolean isExpandKeywords()
      Gets whether or not all keywords presenting in the file and listed in the file's SVNProperty.KEYWORDSproperty (if set) should be substituted.
      Returns:
      true if keywords should expanded, otherwise false
    • setExpandKeywords

      public void setExpandKeywords(boolean expandKeywords)
      Sets whether or not all keywords presenting in the file and listed in the file's SVNProperty.KEYWORDSproperty (if set) should be substituted.
      Parameters:
      expandKeywords - true if keywords should expanded, otherwise false
    • getOutput

      public OutputStream getOutput()
      Gets the output stream of the operation.
      Returns:
      output stream
    • setOutput

      public void setOutput(OutputStream output)
      Sets the output stream of the operation.
      Parameters:
      output - output stream
    • ensureArgumentsAreValid

      protected void ensureArgumentsAreValid() throws SVNException
      Overrides:
      ensureArgumentsAreValid in class SvnOperation<Void>
      Throws:
      SVNException
    • isChangesWorkingCopy

      public boolean isChangesWorkingCopy()
      Gets whether the operation changes working copy
      Overrides:
      isChangesWorkingCopy in class SvnOperation<Void>
      Returns:
      true if the operation changes the working copy, otherwise false