|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.tmatesoft.svn.core.wc2.SvnOperation<java.lang.Void> org.tmatesoft.svn.core.wc2.SvnCat
public class SvnCat
Represents cat operation. Outputs the content of file identified by target
and
revision to the output streams.
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:
SVNErrorCode.CLIENT_IS_DIRECTORY
error code - if target
refers to a directory
SVNErrorCode.UNVERSIONED_RESOURCE
error code - if target
is not under version control
createTempFile()
fails) necessary for file translating (used when target
is URL)
Constructor Summary | |
---|---|
protected |
SvnCat(SvnOperationFactory factory)
|
Method Summary | |
---|---|
protected void |
ensureArgumentsAreValid()
|
java.io.OutputStream |
getOutput()
Gets the output stream of the operation. |
boolean |
isChangesWorkingCopy()
Gets whether the operation changes working copy |
boolean |
isExpandKeywords()
Gets whether or not all keywords presenting in the file and listed in the file's SVNProperty.KEYWORDS property (if set) should be substituted. |
void |
setExpandKeywords(boolean expandKeywords)
Sets whether or not all keywords presenting in the file and listed in the file's SVNProperty.KEYWORDS property (if set) should be substituted. |
void |
setOutput(java.io.OutputStream output)
Sets the output stream of the operation. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected SvnCat(SvnOperationFactory factory)
Method Detail |
---|
public boolean isExpandKeywords()
SVNProperty.KEYWORDS
property (if set) should be substituted.
true
if keywords should expanded, otherwise false
public void setExpandKeywords(boolean expandKeywords)
SVNProperty.KEYWORDS
property (if set) should be substituted.
expandKeywords
- true
if keywords should expanded, otherwise false
public java.io.OutputStream getOutput()
public void setOutput(java.io.OutputStream output)
output
- output streamprotected void ensureArgumentsAreValid() throws SVNException
ensureArgumentsAreValid
in class SvnOperation<java.lang.Void>
SVNException
public boolean isChangesWorkingCopy()
isChangesWorkingCopy
in class SvnOperation<java.lang.Void>
true
if the operation changes the working copy, otherwise false
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |