Class BasicDAVHandler
java.lang.Object
org.xml.sax.helpers.DefaultHandler
org.tmatesoft.svn.core.internal.io.dav.handlers.BasicDAVHandler
- All Implemented Interfaces:
ContentHandler
,DTDHandler
,EntityResolver
,ErrorHandler
- Direct Known Subclasses:
BasicDAVDeltaHandler
,DAVDateRevisionHandler
,DAVDeletedRevisionHandler
,DAVErrorHandler
,DAVGetLocksHandler
,DAVInheritedPropertiesHandler
,DAVLocationSegmentsHandler
,DAVLocationsHandler
,DAVLockHandler
,DAVLogHandler
,DAVMergeHandler
,DAVMergeInfoHandler
,DAVOptionsHandler
,DAVPropertiesHandler
,DAVProppatchHandler
- Version:
- 1.3
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Collection
private StringBuffer
private byte[]
private String
private List
private Stack
private Map
private static final Object
protected static final Collection
protected static final Collection
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected byte[]
allocateBuffer
(int length) void
characters
(char[] ch, int start, int length) protected SVNPropertyValue
createPropertyValue
(DAVElement element, String propertyName, StringBuffer cdata, String encoding) protected SVNPropertyValue
createPropertyValueFromBase64
(DAVElement element, String propertyName, StringBuffer cdata) void
endElement
(String uri, String localName, String qName) protected abstract void
endElement
(DAVElement parent, DAVElement element, StringBuffer cdata) void
endPrefixMapping
(String prefix) private DAVElement
getDAVElement
(String qName, String localName, String namespace) protected List
private DAVElement
protected void
init()
protected void
private void
setNamespace
(String uri) void
startElement
(String uri, String localName, String qName, Attributes attributes) protected abstract void
startElement
(DAVElement parent, DAVElement element, Attributes attrs) void
startPrefixMapping
(String prefix, String uri) private boolean
useStringProperty
(DAVElement element, String propertyName) Methods inherited from class org.xml.sax.helpers.DefaultHandler
endDocument, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, unparsedEntityDecl, warning
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.xml.sax.ContentHandler
declaration
-
Field Details
-
SVN_DAV_NAMESPACES_LIST
-
SVN_NAMESPACES_LIST
-
DAV_NAMESPACES_LIST
-
ROOT
-
myPrefixesMap
-
myNamespacesCollection
-
myNamespace
-
myCDATA
-
myParent
-
myDeltaBuffer
private byte[] myDeltaBuffer
-
-
Constructor Details
-
BasicDAVHandler
protected BasicDAVHandler()
-
-
Method Details
-
setNamespace
-
init
protected void init() -
startElement
public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException - Specified by:
startElement
in interfaceContentHandler
- Overrides:
startElement
in classDefaultHandler
- Throws:
SAXException
-
endElement
- Specified by:
endElement
in interfaceContentHandler
- Overrides:
endElement
in classDefaultHandler
- Throws:
SAXException
-
characters
- Specified by:
characters
in interfaceContentHandler
- Overrides:
characters
in classDefaultHandler
- Throws:
SAXException
-
startPrefixMapping
- Specified by:
startPrefixMapping
in interfaceContentHandler
- Overrides:
startPrefixMapping
in classDefaultHandler
- Throws:
SAXException
-
endPrefixMapping
- Specified by:
endPrefixMapping
in interfaceContentHandler
- Overrides:
endPrefixMapping
in classDefaultHandler
- Throws:
SAXException
-
startElement
protected abstract void startElement(DAVElement parent, DAVElement element, Attributes attrs) throws SVNException - Throws:
SVNException
-
endElement
protected abstract void endElement(DAVElement parent, DAVElement element, StringBuffer cdata) throws SVNException - Throws:
SVNException
-
invalidXML
- Throws:
SVNException
-
getNamespaces
-
getParent
-
getDAVElement
-
createPropertyValue
protected SVNPropertyValue createPropertyValue(DAVElement element, String propertyName, StringBuffer cdata, String encoding) throws SVNException - Throws:
SVNException
-
createPropertyValueFromBase64
protected SVNPropertyValue createPropertyValueFromBase64(DAVElement element, String propertyName, StringBuffer cdata) -
useStringProperty
-
allocateBuffer
protected byte[] allocateBuffer(int length)
-