Class DefaultDumpFilterHandler
- java.lang.Object
-
- org.tmatesoft.svn.core.internal.wc.DefaultDumpFilterHandler
-
- All Implemented Interfaces:
ISVNLoadHandler
public class DefaultDumpFilterHandler extends java.lang.Object implements ISVNLoadHandler
- Version:
- 1.3
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private class
DefaultDumpFilterHandler.NodeBaton
private class
DefaultDumpFilterHandler.RevisionBaton
class
DefaultDumpFilterHandler.RevisionItem
-
Field Summary
Fields Modifier and Type Field Description private DefaultDumpFilterHandler.NodeBaton
myCurrentNodeBaton
private DefaultDumpFilterHandler.RevisionBaton
myCurrentRevisionBaton
private java.util.Map
myDroppedNodes
private long
myDroppedRevisionsCount
private ISVNAdminEventHandler
myEventHandler
private boolean
myIsDoExclude
private boolean
myIsDoRenumberRevisions
private boolean
myIsDropEmptyRevisions
private boolean
myIsPreserveRevisionProps
private boolean
myIsSkipMissingMergeSources
private long
myLastLiveRevision
private java.io.OutputStream
myOutputStream
private java.util.Collection
myPrefixes
private java.util.Map
myRenumberHistory
-
Constructor Summary
Constructors Constructor Description DefaultDumpFilterHandler(java.io.OutputStream os, ISVNAdminEventHandler handler, boolean exclude, boolean renumberRevisions, boolean dropEmptyRevisions, boolean preserveRevisionProperties, java.util.Collection prefixes, boolean skipMissingMergeSources)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private java.util.Map
adjustMergeInfo(SVNPropertyValue initialValue)
void
applyTextDelta()
void
closeNode()
void
closeRevision()
void
deleteNodeProperty(java.lang.String propertyName)
private void
dispatchEvent(SVNAdminEvent event)
java.util.Map
getDroppedNodes()
long
getDroppedRevisionsCount()
private long
getLongFromHeaders(java.lang.String header, java.util.Map headers)
private SVNNodeKind
getNodeKindFromHeaders(java.lang.String header, java.util.Map headers)
java.util.Map
getRenumberHistory()
void
openNode(java.util.Map headers)
void
openRevision(java.util.Map headers)
private void
outputNode(DefaultDumpFilterHandler.NodeBaton nodeBaton)
private void
outputRevision(DefaultDumpFilterHandler.RevisionBaton revisionBaton)
void
parseTextBlock(java.io.InputStream dumpStream, long contentLength, boolean isDelta)
void
parseUUID(java.lang.String uuid)
void
removeNodeProperties()
void
reset(java.io.OutputStream os, ISVNAdminEventHandler handler, boolean exclude, boolean renumberRevisions, boolean dropEmptyRevisions, boolean preserveRevisionProperties, java.util.Collection prefixes, boolean skipMissingMergeSources)
void
setFullText()
void
setNodeProperty(java.lang.String propertyName, SVNPropertyValue propertyValue)
void
setRevisionProperty(java.lang.String propertyName, SVNPropertyValue propertyValue)
private boolean
skipPath(java.lang.String path)
private void
writeDumpData(java.io.OutputStream out, byte[] bytes)
private void
writeDumpData(java.io.OutputStream out, java.lang.String data)
private void
writeProperty(java.io.OutputStream out, java.lang.String propName, SVNPropertyValue propValue)
-
-
-
Field Detail
-
myIsDoRenumberRevisions
private boolean myIsDoRenumberRevisions
-
myIsDoExclude
private boolean myIsDoExclude
-
myIsPreserveRevisionProps
private boolean myIsPreserveRevisionProps
-
myIsDropEmptyRevisions
private boolean myIsDropEmptyRevisions
-
myIsSkipMissingMergeSources
private boolean myIsSkipMissingMergeSources
-
myDroppedRevisionsCount
private long myDroppedRevisionsCount
-
myLastLiveRevision
private long myLastLiveRevision
-
myOutputStream
private java.io.OutputStream myOutputStream
-
myPrefixes
private java.util.Collection myPrefixes
-
myDroppedNodes
private java.util.Map myDroppedNodes
-
myRenumberHistory
private java.util.Map myRenumberHistory
-
myCurrentRevisionBaton
private DefaultDumpFilterHandler.RevisionBaton myCurrentRevisionBaton
-
myCurrentNodeBaton
private DefaultDumpFilterHandler.NodeBaton myCurrentNodeBaton
-
myEventHandler
private ISVNAdminEventHandler myEventHandler
-
-
Constructor Detail
-
DefaultDumpFilterHandler
public DefaultDumpFilterHandler(java.io.OutputStream os, ISVNAdminEventHandler handler, boolean exclude, boolean renumberRevisions, boolean dropEmptyRevisions, boolean preserveRevisionProperties, java.util.Collection prefixes, boolean skipMissingMergeSources)
-
-
Method Detail
-
reset
public void reset(java.io.OutputStream os, ISVNAdminEventHandler handler, boolean exclude, boolean renumberRevisions, boolean dropEmptyRevisions, boolean preserveRevisionProperties, java.util.Collection prefixes, boolean skipMissingMergeSources)
-
closeNode
public void closeNode() throws SVNException
- Specified by:
closeNode
in interfaceISVNLoadHandler
- Throws:
SVNException
-
closeRevision
public void closeRevision() throws SVNException
- Specified by:
closeRevision
in interfaceISVNLoadHandler
- Throws:
SVNException
-
openNode
public void openNode(java.util.Map headers) throws SVNException
- Specified by:
openNode
in interfaceISVNLoadHandler
- Throws:
SVNException
-
openRevision
public void openRevision(java.util.Map headers) throws SVNException
- Specified by:
openRevision
in interfaceISVNLoadHandler
- Throws:
SVNException
-
parseTextBlock
public void parseTextBlock(java.io.InputStream dumpStream, long contentLength, boolean isDelta) throws SVNException
- Specified by:
parseTextBlock
in interfaceISVNLoadHandler
- Throws:
SVNException
-
parseUUID
public void parseUUID(java.lang.String uuid) throws SVNException
- Specified by:
parseUUID
in interfaceISVNLoadHandler
- Throws:
SVNException
-
removeNodeProperties
public void removeNodeProperties() throws SVNException
- Specified by:
removeNodeProperties
in interfaceISVNLoadHandler
- Throws:
SVNException
-
setFullText
public void setFullText() throws SVNException
- Specified by:
setFullText
in interfaceISVNLoadHandler
- Throws:
SVNException
-
setRevisionProperty
public void setRevisionProperty(java.lang.String propertyName, SVNPropertyValue propertyValue) throws SVNException
- Specified by:
setRevisionProperty
in interfaceISVNLoadHandler
- Throws:
SVNException
-
setNodeProperty
public void setNodeProperty(java.lang.String propertyName, SVNPropertyValue propertyValue) throws SVNException
- Specified by:
setNodeProperty
in interfaceISVNLoadHandler
- Throws:
SVNException
-
deleteNodeProperty
public void deleteNodeProperty(java.lang.String propertyName) throws SVNException
- Specified by:
deleteNodeProperty
in interfaceISVNLoadHandler
- Throws:
SVNException
-
applyTextDelta
public void applyTextDelta() throws SVNException
- Specified by:
applyTextDelta
in interfaceISVNLoadHandler
- Throws:
SVNException
-
getDroppedRevisionsCount
public long getDroppedRevisionsCount()
-
getRenumberHistory
public java.util.Map getRenumberHistory()
-
getDroppedNodes
public java.util.Map getDroppedNodes()
-
outputRevision
private void outputRevision(DefaultDumpFilterHandler.RevisionBaton revisionBaton) throws SVNException
- Throws:
SVNException
-
outputNode
private void outputNode(DefaultDumpFilterHandler.NodeBaton nodeBaton) throws SVNException
- Throws:
SVNException
-
writeProperty
private void writeProperty(java.io.OutputStream out, java.lang.String propName, SVNPropertyValue propValue) throws SVNException
- Throws:
SVNException
-
adjustMergeInfo
private java.util.Map adjustMergeInfo(SVNPropertyValue initialValue) throws SVNException
- Throws:
SVNException
-
getNodeKindFromHeaders
private SVNNodeKind getNodeKindFromHeaders(java.lang.String header, java.util.Map headers)
-
getLongFromHeaders
private long getLongFromHeaders(java.lang.String header, java.util.Map headers)
-
writeDumpData
private void writeDumpData(java.io.OutputStream out, java.lang.String data) throws SVNException
- Throws:
SVNException
-
writeDumpData
private void writeDumpData(java.io.OutputStream out, byte[] bytes) throws SVNException
- Throws:
SVNException
-
skipPath
private boolean skipPath(java.lang.String path)
-
dispatchEvent
private void dispatchEvent(SVNAdminEvent event) throws SVNException
- Throws:
SVNException
-
-